vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1745 Location: Tirupur, India
|
|
|
|
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. |
|