<?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: read data from a secured website in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/read-data-from-a-secured-website/m-p/175555#M33710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Yes, I did.&amp;nbsp; I have username and password. But it returns with empty out put. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2014 12:59:57 GMT</pubDate>
    <dc:creator>natson001</dc:creator>
    <dc:date>2014-10-08T12:59:57Z</dc:date>
    <item>
      <title>read data from a secured website</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-data-from-a-secured-website/m-p/175553#M33708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to fetch data from a secured website (ID and password) using the macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 12.0pt; font-family: 'Courier New';"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; http(http=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%nrstr&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(), save_file=, hostname=, delimiter=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%str&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(|),fileref=browser, termstr=CRLF);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%local&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; str1 str2 pos http;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; str1=; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; str2=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%do&lt;/SPAN&gt; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%while&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%index&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;http,&amp;amp;delimiter)&amp;gt;&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 12.0pt; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; pos=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%index&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;http,&amp;amp;delimiter);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; str1=&amp;amp;str1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%qsubstr&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;http, 1, &amp;amp;pos-1)/;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; str2=&amp;amp;str2&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%qsubstr&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;http, 1, &amp;amp;pos-1)'0d0a'x;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; http=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%qsubstr&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;http, &amp;amp;pos+1, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%length&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;http)-&amp;amp;pos);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; filename &amp;amp;fileref socket &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"&amp;amp;hostname:80"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; termstr=&amp;amp;termstr lrecl=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 12.0pt; font-family: 'Courier New';"&gt;8192&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; retain chunked;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; length rec2 $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 12.0pt; font-family: 'Courier New';"&gt;10000&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; chunked $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 12.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; infile &amp;amp;fileref length=len;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _n_=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 12.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; then do;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file &amp;amp;fileref;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; put &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%unquote&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;str1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; file &amp;amp;save_file;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; put &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'&amp;gt;&amp;gt;&amp;gt; HTTP Request:'&lt;/SPAN&gt; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'0d0a'x&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; put &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%unquote&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;str2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; put &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'0d0a'x&lt;/SPAN&gt; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'&amp;lt;&amp;lt;&amp;lt; HTTP Response:'&lt;/SPAN&gt; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'0d0a'x&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file &amp;amp;save_file recfm=n;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; input record &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$varying8192.&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; len;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put record &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$varying8192.&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; len &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'0d0a'x&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if record=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Transfer-Encoding: chunked'&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; then chunked=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if len=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 12.0pt; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; and chunked=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; then do while (&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 12.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;); %&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;*** look for &amp;amp; process chunks;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; input chunksize &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$varying8.&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; len / record &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$varying8192.&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; len;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; if len ne &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 12.0pt; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; then do;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; l2=len+countc(record, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'0a'x&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; rec2=tranwrd(record, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'0a'x&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'0d0a'x&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; put rec2 &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$varying10000.&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; l2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; else stop; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;*** found null record at end of file, end loop;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 12.0pt; font-family: 'Courier New';"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;in the SAS document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www2.sas.com/proceedings/sugi30/100-30.pdf" title="http://www2.sas.com/proceedings/sugi30/100-30.pdf"&gt;http://www2.sas.com/proceedings/sugi30/100-30.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but got the error: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; HTTP Request:&lt;/P&gt;&lt;P&gt;POST /accounts/login/?next=/admin/epr/toothtreatmentordering/1980/history/ HTTP/1.1&lt;/P&gt;&lt;P&gt;Host: eprctr.dartmouth.edu&lt;/P&gt;&lt;P&gt;Connection: close&lt;/P&gt;&lt;P&gt;Cookie: sessionid=2d4cfc55f32e950d30c6aa5008693b99;&lt;/P&gt;&lt;P&gt;Content-Length: 47&lt;/P&gt;&lt;P&gt;j_username=myname&amp;amp;j_password&amp;amp;Logon=Log+On&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt; HTTP Response:&lt;/P&gt;&lt;P&gt;HTTP/1.1 400 Bad Request&lt;/P&gt;&lt;P&gt;Date: Wed, 01 Oct 2014 13:46:03 GMT&lt;/P&gt;&lt;P&gt;Server: Apache/2.2.14 (Ubuntu)&lt;/P&gt;&lt;P&gt;Vary: Accept-Encoding&lt;/P&gt;&lt;P&gt;Content-Length: 413&lt;/P&gt;&lt;P&gt;Connection: close&lt;/P&gt;&lt;P&gt;Content-Type: text/html; charset=iso-8859-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h1&amp;gt;Bad Request&amp;lt;/h1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;Your browser sent a request that this server could not understand.&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;Request header field is missing ':' separator.&amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;pre&amp;gt;&lt;/P&gt;&lt;P&gt;j_username=myname&amp;amp;amp;j_password&amp;amp;amp;Logon=Log+On&amp;lt;/pre&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;hr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;address&amp;gt;Apache/2.2.14 (Ubuntu) Server at localhost Port 80&amp;lt;/address&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestions will be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 20:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-data-from-a-secured-website/m-p/175553#M33708</guid>
      <dc:creator>natson001</dc:creator>
      <dc:date>2014-10-07T20:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: read data from a secured website</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-data-from-a-secured-website/m-p/175554#M33709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure . Did you try proc http ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 12:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-data-from-a-secured-website/m-p/175554#M33709</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-10-08T12:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: read data from a secured website</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-data-from-a-secured-website/m-p/175555#M33710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Yes, I did.&amp;nbsp; I have username and password. But it returns with empty out put. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 12:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-data-from-a-secured-website/m-p/175555#M33710</guid>
      <dc:creator>natson001</dc:creator>
      <dc:date>2014-10-08T12:59:57Z</dc:date>
    </item>
  </channel>
</rss>

