IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

REST API call - username and password in URL


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1689
Location: Tiruppur, India

PostPosted: Thu Mar 10, 2016 6:34 pm
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: 1689
Location: Tiruppur, India

PostPosted: Mon Mar 14, 2016 10:50 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Call Natural program with rexx CLIST & REXX 2
No new posts CALL statement in COBOL for VSE COBOL Programming 3
No new posts Need example for CALL 'ISRSUPC' in COBOL COBOL Programming 2
No new posts trigger enter key automatically call ... CICS 17
No new posts z/OS Web enablement toolkit - Rexx tr... All Other Mainframe Topics 3
Search our Forums:

Back to Top