HTTPS problems with cookies C#
<p>OK, now that I have investigated the code, there are no cookies to speak of when it comes to storing the cookie collection in a <code>CookieContainer</code>, so I would like to divert and use the headers. The only problem is I do not understand how to use them so that I may download the file form the website.</p>

<p>Could someone give me an example of how I would potentially use headers?</p>

<p>Also the code I used for the cookies is as follows, maybe there is a mistake:</p>

<pre><code>        HttpWebResponse response = (HttpWebResponse)request.GetResponse();
        CookieContainer newCookies = new CookieContainer();
        newCookies.Add(response.Cookies);
</code></pre>

<p>All I get is this header <code>Headers = {Content-Length: 6292
Cache-Control: private
Content-Type: text/html; charset=utf-8
Date: Sun, 22 Jul 2012 03:12:59 GMT
Set-Cookie: ASP.NET_SessionId=dpub2i550ynjfonuv0o0n4nb; domain=website.co.nz; path=/; HttpOnly
Server: Microsoft-IIS/6.0
X-AspNet-Vers...</code></p>

<p>The code does not throw an exception. Just as a side not I am using <code>request.Method = "GET";</code>.</p>
