Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Client application using request version HTTP 1.1 though the protocol is set to 1.0 in the code.

Client application using request version HTTP 1.1 though the protocol is set to 1.0 in the code.

Scheduled Pinned Locked Moved Windows Forms
csharphelpsysadminquestionannouncement
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    prgramya
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups