Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 1445
Location: Azeroth

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: 1445
Location: Azeroth

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 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
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us