I&#39;m having trouble passing header strings properly, and I&#39;d like some advice on how to proceed. Below is a capture of what is being sent, versus what I am trying to send. I won&#39;t include all code, only what I think is necessary. If I have omitted something important, please let me know. How could I discover what the cause of the discrepancy is?<br>
Thanks again for any feedback.<br><br><br>Here&#39;s a snippet from the header, what is being sent.<br><br>&gt; GET /resourceList.do?form=webForwardsForm&amp;readOnly=false&amp;policyLaunching=true&amp;resourcePrefix=webForwards&amp;path=%2FshowWebForwards.do&amp;messageResourcesKey=webForwards&amp;actionPath=%2FresourceList.do HTTP/1.1<br>
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)<br>Host: 172.16.1.18<br>Accept: */*<br>Accept-Encoding: gzip,deflate<br>Referer: <a href="https://172.16.1.18/showWebForwards.do">https://172.16.1.18/showWebForwards.do</a><br>
Cookie: domainLogonTicket=SLXa10225c6e8389b3eb181e3df5dcf08de; logonTicket=SLXa10225c6e8389b3eb181e3df5dcf08de; lbTrack=OAIAGHMWQDOLYYTJEXQHXBYPXVALXNREKIHAYYRZSOGYJLUYNNCJ--------; SSLX_SSESHID=bvgx4mggmy6v<br><br>^ compare this to CurlHttpHeaders<br>
 <br>Here&#39;s the part of the source I think is relevant<br><br>&gt; launch :: String -&gt; String -&gt; IO (Either String String)<br>&gt; launch user pass = do<br>&gt;  -- Initialize Curl<br>&gt;   curl &lt;- initCurl<br>
<br>&gt;   -- Sequence of steps<br>&gt;   let steps = do<br>&gt;       curlResp curl urlInitial method_GET<br>&gt;       curlResp curl urlLogin $ loginOpts user pass<br>&gt;       curlResp curl urlFlash1 method_GET<br>&gt;       curlResp curl urlFlash2 method_GET<br>
&gt;       curlResp curl urlGetResource resourceOpts    &lt;---- here&#39;s where the problem is revealed<br><br>&gt;   runErrorT steps<br>&gt; main :: IO ()<br>&gt; main = do<br>&gt;   -- username and password<br>&gt;   user:pass:_ &lt;- getArgs<br>
<br>&gt;   -- Launch webpage<br>&gt;   resp &lt;- launch user pass<br><br>&gt;   -- Response comes as Either String String<br>&gt;   -- You have to handle each case<br>&gt;   case resp of<br>&gt;     Left  err  -&gt; print err<br>
&gt;     Right body -&gt; putStrLn body<br><br><br><br>&gt; resourceOpts :: [CurlOption]<br>&gt; resourceOpts =<br>&gt;   [ CurlHttpHeaders<br>&gt;     [ &quot;Accept  text/javascript, text/html, application/xml, text/xml, */*&quot;<br>
&gt;     , &quot;Accept-Language en-us,en;q=0.5&quot;<br>&gt;     , &quot;Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7&quot;<br>&gt;     , &quot;Keep-Alive      115&quot;<br>&gt;     , &quot;Connection      keep-alive&quot;<br>
&gt;     , &quot;X-Requested-With        XMLHttpRequest&quot;<br>&gt;     , &quot;X-Prototype-Version     1.6.0.3&quot;<br>&gt;     ]<br>&gt;     , CurlEncoding &quot;gzip,deflate&quot;<br>&gt;     , CurlReferer &quot;<a href="https://172.16.1.18/showWebForwards.do">https://172.16.1.18/showWebForwards.do</a>&quot;<br>
&gt;   ]<br><br><br>