T
Tim Regan
Hi All,
I'm trying to track down why my application built on HttpWebRequest and
HttpWebResponse fails to successfully log onto and access some web
resourses, while IE does so without problem. The sequence of requests and
responses culminates in a page for IE but in an exception for my application
of type 'System.Net.WebException': The remote server returned an error:
(504) Gateway Timeout.
Using an http sniffer (Ethereal) I can see that IE is setting the http
request header "Proxy-Connection" to "Keep-Alive" while my application does
not send that header. Yet for each new request I make I include the line of
code:
request.KeepAlive = true;
Any pointers as to why setting my HttpWebRequest's KeepAlive property to
true is not resulting in the "Proxy-Connection" header being set to
"Keep-Alive"?
Cheers,
Tim.
I'm trying to track down why my application built on HttpWebRequest and
HttpWebResponse fails to successfully log onto and access some web
resourses, while IE does so without problem. The sequence of requests and
responses culminates in a page for IE but in an exception for my application
of type 'System.Net.WebException': The remote server returned an error:
(504) Gateway Timeout.
Using an http sniffer (Ethereal) I can see that IE is setting the http
request header "Proxy-Connection" to "Keep-Alive" while my application does
not send that header. Yet for each new request I make I include the line of
code:
request.KeepAlive = true;
Any pointers as to why setting my HttpWebRequest's KeepAlive property to
true is not resulting in the "Proxy-Connection" header being set to
"Keep-Alive"?
Cheers,
Tim.