HTTP Version problem POSTing XML messages to a server

I have a DLL library, which I have no control over, that builds a XML message and sends it over HTTP to a web server. Due to the strict specifications, the server will only accept message with POST HTTP/1.1. However, the logs in the server shows receiving messages being POSTed HTTP/1.0. If I open the URL directly into a browser, the log shows GET HTTP/1.1, which is correct. We're not going through a proxy and the gateway isn't changing the version from what I can tell. I've tried on two different networks and I get the same error. Also, I have tried on Windows Server 2003 and Windows XP Pro, both of which should support HTTP 1.1.

Does anyone have any ideas why the server is receiving HTTP/1.0 using a POST, but using a GET shows HTTP/1.1?

Edit: I've contacted the DLL maker about this, but their help isn't that great.

Edit 2: Using Fiddler, I was able to extract the header, which is posted below. As you can see it's using HTTP/1.0.


Content-Type: application/xml;charset="utf-8" Host: *** Content-Length: 787

-------------Problems Reply------------

Sounds like you're out of luck seeing as you can't change the DLL. According to your response above in the comments, it seems like the DLL you're using is using HTTP/1.0 to send the HTTP requests to the server.

This is as good an answer as I can provide you with, given that you did not specify which DLL you are talking about or provided additional details.

I would suggest you to take a closer look at the DLL you're using to see if it is possible to instruct that library to use HTTP/1.1 for the requests it's sending out.

Good luck.

Write a server that acts a proxy, accepts http/1.0 obviousy, and then forwards to the destination server. This could work if you only have destination server. Otherwise get in touch with the vendor...... or perhaps take up reverse engineering as a side hobby.

Also on fiddler you should see the request and and response. You can correctly configure fiddler2 with any httpclient (besides just IE) using this reference:

Category:http Views:0 Time:2009-10-16
Tags: http post

Related post

Copyright (C), All Rights Reserved.

processed in 0.093 (s). 11 q(s)