B
Bp
I'm writing a simple HTTPRequest that retrieves the content of a web page.
Dim httpReq As System.Net.HttpWebRequest
Dim httpResp As System.Net.HttpWebResponse
httpReq = CType(System.Net.WebRequest.Create(URLString),
System.Net.HttpWebRequest)
httpResp = CType(httpReq.GetResponse(), System.Net.HttpWebResponse)
The problem is that on certain pages, I get a WebException of "The remote
server returned an error: (500) Internal Server Error." on the
HTTPRequest.GetResponse function call. The WebException.Status is set to
ProtocolError. When I use IE 6.0 to retrieve these pages, it works fine. Are
there some additional settings that I need to make to retrieve certain web
pages? One sample URL that fails on the call to HTTPRequest.GetResponse is
the ASP.NET Users Group page on MSDN:
http://msdn.microsoft.com/usergroup...at=3001&Cat=5014&NumResults=523&CurrentPage=2
Thanks for any help in advance,
Bp
Dim httpReq As System.Net.HttpWebRequest
Dim httpResp As System.Net.HttpWebResponse
httpReq = CType(System.Net.WebRequest.Create(URLString),
System.Net.HttpWebRequest)
httpResp = CType(httpReq.GetResponse(), System.Net.HttpWebResponse)
The problem is that on certain pages, I get a WebException of "The remote
server returned an error: (500) Internal Server Error." on the
HTTPRequest.GetResponse function call. The WebException.Status is set to
ProtocolError. When I use IE 6.0 to retrieve these pages, it works fine. Are
there some additional settings that I need to make to retrieve certain web
pages? One sample URL that fails on the call to HTTPRequest.GetResponse is
the ASP.NET Users Group page on MSDN:
http://msdn.microsoft.com/usergroup...at=3001&Cat=5014&NumResults=523&CurrentPage=2
Thanks for any help in advance,
Bp