Question : C# HttpWebRequest different pages in same site

HttpWebRequest is created using a single URL and looks like it must be recreated for each URL that you would like to interact with.  Is it possible to at least switch pages within the same site without recreating the object?  Maybe there is a way to change this header?
Header:
POST http://www.example.com/ HTTP/1.1

Example of HttpWebRequest:
            WebRequest request2 = WebRequest.Create(this.url+this.page);
            HttpWebRequest httpreq2 = (HttpWebRequest)request2;

I would like to create this object with just the base URL and then without recreating it change the page and continue to work with it.  This would make cookies easier than have to save a cookie collection and such.

Thanks!

Answer : C# HttpWebRequest different pages in same site

Hi,

The issue is caused by the WebService Directory.

- As you said "our internal domain name is an actual domain name that we do not own". This is causing the issue.

- Refer this article: http://support.microsoft.com/kb/940726 and point the URL to proper URL.

Hope this helps,
Shree
Random Solutions  
 
programming4us programming4us