<?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: Filename URL -&amp;gt; ERROR: Unauthorized to retrieve URL. Use the debug option for more info. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filename-URL-gt-ERROR-Unauthorized-to-retrieve-URL-Use-the-debug/m-p/206193#M38338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have contacted SAS tech support and they have pointed me to this SAS notes. This doesnt help. Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usage Note 15692: URL filename engine only supports BASIC authentication on web server&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;When you attempt to read web server data using the URL filename engine, the following error message might appear&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ERROR: Unauthorized to retrieve URL&lt;/P&gt;&lt;P&gt;and with the DEBUG option&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; NOTE: &amp;lt;&amp;lt;&amp;lt; HTTP/1.1 401 Unauthorized&lt;/P&gt;&lt;P&gt;even when supplying valid credentials with the USER and PASS options. Using the DEBUG option on the filename might show the cause to be the web server's use of an authentication method other than BASIC.&amp;nbsp; Notice&lt;BR /&gt;the DEBUG line below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; NOTE: &amp;lt;&amp;lt;&amp;lt; WWW-Authenticate: NTLM&lt;/P&gt;&lt;P&gt;The URL engine will not properly authenticate to a web server unless it uses the BASIC authentication protocol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Mar 2015 19:54:31 GMT</pubDate>
    <dc:creator>koya</dc:creator>
    <dc:date>2015-03-19T19:54:31Z</dc:date>
    <item>
      <title>Filename URL -&gt; ERROR: Unauthorized to retrieve URL. Use the debug option for more info.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-URL-gt-ERROR-Unauthorized-to-retrieve-URL-Use-the-debug/m-p/206192#M38337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to access intranet site using SAS URL filename. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename Candies URL "&lt;A href="http://insite.xxxx.com/xxxx/xxxx.html"&gt;http://insite.xxxx.com/xxxx/xxxx.html&lt;/A&gt;" debug puser="abcdef" ppass="xxxxxx";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; infile Candies length=len;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input record $varying200. len;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put record $varying200. len;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if _n_=15 then stop;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Courier New;"&gt; log: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; GET /xxxx/xxxx.html HTTP/1.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; Host: xxxx.xxxx.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; Accept: */*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; Proxy-Authorization: Basic YzY5MTkyOnh4eHh4eA==&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; Accept-Language: en&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; Accept-Charset: iso-8859-1,*,utf-8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; User-Agent: SAS/URL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; HTTP/1.0 302 Object Moved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; Expires: Thu, 01 Dec 1994 16:00:00 GMT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; Location:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://xxxx.xxxx.com/siteminderagent/ntlm/creds.ntc?CHALLENGE=&amp;amp;SMAGENTNAME=-SM-47H8Wn"&gt;http://xxxx.xxxx.com/siteminderagent/ntlm/creds.ntc?CHALLENGE=&amp;amp;SMAGENTNAME=-SM-47H8Wn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NNzFyE3UZYD%2bIfBdnJKDkWWSzZs%2bhUkvpF7jRaPuKbfBYqQL0n%2bRzZmsti&amp;amp;TARGET=-SM-http%3a%2f%2fin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;site%2exxxxt%2ecom%2fxxxx%2fdefault%2ehtml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; Content-Length: 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; GET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/sitemxxxeragent/ntlm/creds.ntc?CHALLENGE=&amp;amp;SMAGENTNAME=-SM-47H8WnNNzFyE3UZxx%2bIfBdnJKDkWWS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zZs%2bhUkvpF7jRaPuKbfBYqQL0n%2bRzZmsti&amp;amp;TARGET=-SM-http%3a%2f%2finsite%2exxet%2ecom%2fPxxj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ectxOxe%2fdxxxault%2ehtml HTTP/1.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; Host: ixxxxet.xxxx.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; Accept: */*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; Proxy-Authorization: Basic YzY5MTkyOnh4eHh4eA==&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; Accept-Language: en&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; Accept-Charset: iso-8859-1,*,utf-8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt; User-Agent: SAS/URL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; HTTP/1.1 401 Unauthorized&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; Content-Length: 5064&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; Content-Type: text/html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; Server: Microsoft-IIS/6.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; WWW-Authenticate: Negotiate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; WWW-Authenticate: NTLM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; X-Powered-By: ASP.NET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; Date: Thu, 19 Mar 2015 19:12:46 GMT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; Connection: close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: &amp;lt;&amp;lt;&amp;lt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Unauthorized to retrieve URL. Use the debug option for more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;real time 0.48 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cpu time 0.04 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 19:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-URL-gt-ERROR-Unauthorized-to-retrieve-URL-Use-the-debug/m-p/206192#M38337</guid>
      <dc:creator>koya</dc:creator>
      <dc:date>2015-03-19T19:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filename URL -&gt; ERROR: Unauthorized to retrieve URL. Use the debug option for more info.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-URL-gt-ERROR-Unauthorized-to-retrieve-URL-Use-the-debug/m-p/206193#M38338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have contacted SAS tech support and they have pointed me to this SAS notes. This doesnt help. Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usage Note 15692: URL filename engine only supports BASIC authentication on web server&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;When you attempt to read web server data using the URL filename engine, the following error message might appear&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ERROR: Unauthorized to retrieve URL&lt;/P&gt;&lt;P&gt;and with the DEBUG option&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; NOTE: &amp;lt;&amp;lt;&amp;lt; HTTP/1.1 401 Unauthorized&lt;/P&gt;&lt;P&gt;even when supplying valid credentials with the USER and PASS options. Using the DEBUG option on the filename might show the cause to be the web server's use of an authentication method other than BASIC.&amp;nbsp; Notice&lt;BR /&gt;the DEBUG line below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; NOTE: &amp;lt;&amp;lt;&amp;lt; WWW-Authenticate: NTLM&lt;/P&gt;&lt;P&gt;The URL engine will not properly authenticate to a web server unless it uses the BASIC authentication protocol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 19:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-URL-gt-ERROR-Unauthorized-to-retrieve-URL-Use-the-debug/m-p/206193#M38338</guid>
      <dc:creator>koya</dc:creator>
      <dc:date>2015-03-19T19:54:31Z</dc:date>
    </item>
  </channel>
</rss>

