M
Marauderz
I'm trying to upload some data via the request headers to a page on a
secured site, the page is accessed through the office proxy.
Through IE and the appropraite proxy settings I can browse to the page just
fine.
When I use a webclient to call downloaddata on the page I get the
webexception
"The underlying connection was closed: Unable to connect to the remote
server."
which has an inner IOexception of
"The operation is not allowed on non-connected sockets."
from what I could trace out of the headers I can see that IE sets this when
requesting the page
Proxy-Connection: Keep-Alive
But when I call it through the webclient class this is set instead
Connection: Keep-Alive
I can't set the Proxy-Connection header properly since it's a protected
header, and I can't figure out how to get the WebClient to set this
particular header. Does anyone have any idea wats going on here?
secured site, the page is accessed through the office proxy.
Through IE and the appropraite proxy settings I can browse to the page just
fine.
When I use a webclient to call downloaddata on the page I get the
webexception
"The underlying connection was closed: Unable to connect to the remote
server."
which has an inner IOexception of
"The operation is not allowed on non-connected sockets."
from what I could trace out of the headers I can see that IE sets this when
requesting the page
Proxy-Connection: Keep-Alive
But when I call it through the webclient class this is set instead
Connection: Keep-Alive
I can't set the Proxy-Connection header properly since it's a protected
header, and I can't figure out how to get the WebClient to set this
particular header. Does anyone have any idea wats going on here?