If you need to login with forms authentication, I have an article
covering this topic here:
http://odetocode.com/Articles/162.aspx
--
Scott
On Sat, 17 Jul 2004 08:27:02 -0700, "LOLO"
<> wrote:
>I want to save in a file the HTML code generated by a WebRequest to an aspx page.
>
>When a connect to a external site, i can obtain the html code generated by server. But when i connect to a page of my application, the server responds "(401) Non autorisé. "
>
>the is:
>
>WebRequest request=WebRequest.Create("http://localhost/software/tools/pages/index.htm");
>WebResponse response=request.GetResponse();
>Stream stream=response.GetResponseStream();
>
>the error is on the "WebResponse response=request.GetResponse();" only if the page is an aspx page in my code but never on an external site ...
>
>
--
Scott
http://www.OdeToCode.com