<?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: Missing Response from cURL in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Missing-Response-from-cURL/m-p/640640#M752</link>
    <description>&lt;P&gt;You may have more success asking this in a curl-related place, like the curl users mailing list:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://cool.haxx.se/mailman/listinfo/curl-users" target="_blank" rel="noopener"&gt;https://cool.haxx.se/mailman/listinfo/curl-users&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Apr 2020 08:34:56 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-04-17T08:34:56Z</dc:date>
    <item>
      <title>Missing Response from cURL</title>
      <link>https://communities.sas.com/t5/Developers/Missing-Response-from-cURL/m-p/640631#M751</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a question/problem regarding cURL.&lt;/P&gt;&lt;P&gt;I have SAS job on a remote server, that I can successfully run using PROC HTTP:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;		filename out1 temp;
		proc http
			url='https://myserver.net/SASJobExecution/?_program=/Public/code/model/score'
			out=out1
			OAUTH_BEARER="&amp;amp;ACCESS_TOKEN."	
			method="GET";
		run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As a response I get the HTML results back in out1 (as expected and required).&lt;/P&gt;&lt;P&gt;Note:The macro variable &amp;amp;ACCESS_TOKEN. has been set before successfully already.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I tried to run the same call using cURL (on Windows) with the following command:&lt;/P&gt;&lt;PRE&gt;curl -X GET "https://myserver.net/SASJobExecution/?_program=/Public/code/model/score" -H "Authorization: Bearer %ACCESS_TOKEN%"&lt;/PRE&gt;&lt;P&gt;Again %ACCESS_TOKEN% has been assigned previously already.&lt;/P&gt;&lt;P&gt;The server also executes the job successfully - I can see and check the results directly on server myserver.net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But - if the execution of the job was successfully - the curl command does not return me the response.&lt;/P&gt;&lt;P&gt;Only if the job fails (e. g. due to a syntax error), then the curl command returns me the response to the console (stdout).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me:&lt;BR /&gt;Do I have to specify a special cURL option to get back the HTML output of the executed SAS job?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Helmut&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 07:53:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Missing-Response-from-cURL/m-p/640631#M751</guid>
      <dc:creator>H-elmu-t</dc:creator>
      <dc:date>2020-04-17T07:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Response from cURL</title>
      <link>https://communities.sas.com/t5/Developers/Missing-Response-from-cURL/m-p/640640#M752</link>
      <description>&lt;P&gt;You may have more success asking this in a curl-related place, like the curl users mailing list:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://cool.haxx.se/mailman/listinfo/curl-users" target="_blank" rel="noopener"&gt;https://cool.haxx.se/mailman/listinfo/curl-users&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 08:34:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Missing-Response-from-cURL/m-p/640640#M752</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-17T08:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Response from cURL</title>
      <link>https://communities.sas.com/t5/Developers/Missing-Response-from-cURL/m-p/640641#M753</link>
      <description>Thanks for the hint!</description>
      <pubDate>Fri, 17 Apr 2020 08:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Missing-Response-from-cURL/m-p/640641#M753</guid>
      <dc:creator>H-elmu-t</dc:creator>
      <dc:date>2020-04-17T08:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Response from cURL</title>
      <link>https://communities.sas.com/t5/Developers/Missing-Response-from-cURL/m-p/642220#M776</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I meanwhile do not think that my problem is related to curl (in Windows).&lt;/P&gt;&lt;P&gt;I am able to send curl requests to a couple of servers using Window curl successfully and I always get a response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when sending my request to the SAS server, I get only response in case of an error (as described in my original post).&amp;nbsp;&lt;BR /&gt;If the SAS job has been executed successfully, then I receive no output in curl... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas why this is the case...?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Helmut&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 12:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Missing-Response-from-cURL/m-p/642220#M776</guid>
      <dc:creator>H-elmu-t</dc:creator>
      <dc:date>2020-04-23T12:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Response from cURL</title>
      <link>https://communities.sas.com/t5/Developers/Missing-Response-from-cURL/m-p/644146#M784</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Adding curl option -L to the call solves the issue:&lt;/P&gt;&lt;PRE&gt;curl -X GET "https://myserver.net/SASJobExecution/?_program=/Public/code/model/score" -H "Authorization: Bearer %ACCESS_TOKEN%" -L&lt;/PRE&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;H.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 05:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Missing-Response-from-cURL/m-p/644146#M784</guid>
      <dc:creator>H-elmu-t</dc:creator>
      <dc:date>2020-04-30T05:33:44Z</dc:date>
    </item>
  </channel>
</rss>

