Hello!
I am trying to use JSL (JMP 16.2.0) to read data from an API which contains some relevant data in response headers (in particular, I want to examine the Content-Location header to make a subsequent request).
The only documentation I can find around making HTTP requests are examples. In these examples, there is generally a call along the lines of:
request = New HTTP Request(
URL( url ),
Method( "GET" ),
Headers({ "Authorization: Basic " || credentials })
);
data = request << Send();
When I do this, data contains the contents of the HTTP response body, effectively stripping out the response headers I need.
Is there any way to send an HTTP request such that I can examine response headers in JSL? (Most helpfully, is there any documentation which explains the HTTP request API fully?)
Thanks for your help!