I am using the System.Net.Webclient to try and download an
XML file from a website but am receiving a HTTP protocol
error when running the DownloadFile() sub routine. I did
a HTTP trace using internet explorer to see what is
happening in the request and it looks as though the
request originates using HTTP/1.1 to an IIS server
authenticates itself but ultimately gets executed by a
Java Application server and when the request is fulfilled
it returns "HTTP/1.0" I'm assuming this is probably
against the HTTP spec and is what is generating the
protocol error? Is there any workaround to this using the
Webclient or am I going to have to approach the problem at
a sockets level, and if so does anyone have a HTTP sockets
client out there that is not the WebClient?
Internet explorer seems to have no problem dealing with
the request and it returns fine in the browser, but when
going at it using the WebClient it errors out.
Here is the request response information for the request
which shows the different protocol versions:
Server Information
IP Address: 192.251.14.15:443
Response Time: 00:00:02.304
Client Request
3 GET /mkt/xml/private/XmlRequest?
request=GENBYPARTICIPANT&DAY=20031007 HTTP/1.1
Header Contents
HTTP/1.0 200 OK
Note:This is only the final request, there are previous
requests which show a 401 denied and it then
authenticates, all using HTTP/1.1 its only the final
request that returns HTTP/1.0