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: 1742
Location: Tirupur, 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: 1742
Location: Tirupur, 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 Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Batch call online program, EXCI task ... CICS 3
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
No new posts CICS DPL call CICS 6
Search our Forums:

Back to Top