title: HttpWebRequest with GET: 401 unauthorized
body: <p>I found some problem with httpWebRequest, I've read all the same issues on other forums, but answers don't seem to work. My code:</p>
  
  <pre><code>HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(url);
  HttpWebResponse resp;
  wr.ContentType = "text/html; charset=UTF-8"; 
  wr.Method = "GET";
  wr.Credentials = new NetworkCredential("user", "password");
  resp = (HttpWebResponse)wr.GetResponse();
  </code></pre>
  
  <p>The remote server returned an error: <code>(401) Unauthorized.</code>
  Response says there's no auth token in cookies. I can receieve this token using my auth request with POST method. I even tried to put it to CookieContainer by <code>"new Cookie ("authToken",token_value)".</code> But the result is the same - <code>error 401</code>. Does anybody know the solution?</p>
  
  <p>Thanx.</p>
  
  <p>I use Zimbra web server, have an access to control it. .NET 4.0. My url is the path to .eml file I need to download. To specify the file I need to add some GET parameters: id and part. So the whole address looks like <a href="http://someserver.info/service/content/get?id=1&amp;part=1" rel="nofollow">http://someserver.info/service/content/get?id=1&amp;part=1</a></p>