Client application using request version HTTP 1.1 though the protocol is set to 1.0 in the code.
-
Hi all, Iam using a client application developed in c# that connects to a webservice in a remote server.I have set the Client protocol version to 1.0 in the client application. The code is protected override System.Net.WebRequest GetWebRequest(Uri uri) { System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest) base.GetWebRequest(uri); webRequest.ProtocolVersion = System.Net.HttpVersion.Version10; return webRequest; } I compiled the application connecting to the webservice in the remote server. But when i viewed the HTTP post info using Ethereal the POST info displayed was HTTP POST/xx/xx.asmx HTTP1.1 RequestMethod:POST RequestVersion:HTTP/1.1 Iam using the protocol version set to 1.0 in the code but the application is still using HTTP 1.1.Why? Can anyone help me resolve this issue. Any help will be appreciated. Thanks Ramya