<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I read HTTP response headers? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-read-HTTP-response-headers/m-p/598300#M80205</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 05:30:38 GMT</pubDate>
    <dc:creator>UersK</dc:creator>
    <dc:date>2023-02-08T05:30:38Z</dc:date>
    <item>
      <title>How do I read HTTP response headers?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-read-HTTP-response-headers/m-p/493044#M73353</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only documentation I can find around making HTTP requests are examples. In these examples, there is generally a call along the lines of:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;request = New HTTP Request(
	URL( url ),
	Method( "GET" ),
	Headers({ "Authorization: Basic " || credentials })
);
data = request &amp;lt;&amp;lt; Send();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class=""&gt;When I do this, data contains the contents of the HTTP response body, effectively stripping out the response headers I need.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;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?)&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:00:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-read-HTTP-response-headers/m-p/493044#M73353</guid>
      <dc:creator>BenchlingVic</dc:creator>
      <dc:date>2023-06-09T17:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read HTTP response headers?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-read-HTTP-response-headers/m-p/493094#M73355</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Modified from &amp;lt;&amp;lt;GetResponseHeaders in Scripting Index" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42714iCD700B99B28557D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Modified from &amp;lt;&amp;lt;GetResponseHeaders in Scripting Index" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Modified from &amp;lt;&amp;lt;GetResponseHeaders in Scripting Index&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Edit: That's less clear than I wanted it to be because &lt;EM&gt;&amp;lt;&amp;lt;Send&lt;/EM&gt; is the message name that is being &lt;EM&gt;sent&lt;/EM&gt; to the object in the variable named &lt;EM&gt;request&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 01:19:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-read-HTTP-response-headers/m-p/493094#M73355</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-05-26T01:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read HTTP response headers?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-read-HTTP-response-headers/m-p/598300#M80205</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 05:30:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-read-HTTP-response-headers/m-p/598300#M80205</guid>
      <dc:creator>UersK</dc:creator>
      <dc:date>2023-02-08T05:30:38Z</dc:date>
    </item>
  </channel>
</rss>

