Writing to the Authentification Popup
<p>I'm trying to write code in C# that accesses a website but i get a popup authentication. I've tried to write to code that would skip this page by entering it for the user but it still pops up. Any suggestions ?</p>

<pre><code>HttpWebRequest request = (HttpWebRequest)
WebRequest.Create(@"http://example"));

request.ContentType = "text/html";

request.Credentials = new NetworkCredential(@"username", "password");

request.AllowAutoRedirect = true;
request.Referer = @"http://example";


HttpWebResponse response = (HttpWebResponse)
request.GetResponse();


webBrowser1.DocumentStream = resStream;

MessageBox.Show(webBrowser1.Document.Title);
</code></pre>
