Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
REST API call - username and password in URL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1522
Location: Chennai

PostPosted: Thu Mar 10, 2016 6:34 pm    Post subject: REST API call - username and password in URL
Reply with quote

Hi,

I am trying to make a REST API call from SAS.
I tried via the filename URL statement as shown below and getting an authentication error.
Code:
filename webdata url
'http://username:password@RESTAPI-ENDPOINT-ADDRESS';
data scrape;
infile webdata
length=len;
input record $varying1000. len;
run;

The URL is being read OK, but the authentication is not successful.
Could you please let me know how to make a REST API call with username and password encoded on the URL itself.

Just need this URL http://username:password@RESTAPI-ENDPOINT-ADDRESS' to have username and password in it & working.

I tried the PROC HTTP in SAS, but it bombs with "Failed to initialize JVM" messages.
Back to top
View user's profile Send private message

vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1522
Location: Chennai

PostPosted: Mon Mar 14, 2016 10:50 pm    Post subject:
Reply with quote

Got the solution, it can't be done due to security issues. :S :S :S :S
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us