[Mono-bugs] [Bug 668199] New: Can not make httpwebrequest to same uri with different protocol versions

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jan 30 12:11:49 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=668199

https://bugzilla.novell.com/show_bug.cgi?id=668199#c0


           Summary: Can not make httpwebrequest to same uri with different
                    protocol versions
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jaharper at novell.com
         QAContact: mono-bugs at lists.ximian.com
                CC: gonzalo at novell.com
          Found By: ---
           Blocker: ---


If you make an HttpWebRequest to a URI and set the protocol version to 1.0 and
then create a new request for the same uri but set the protocol version to 1.1
the 1.0 protocol will be used for both requests.

Run this test with a packet sniffer:

Note that the test works if 1.1 is used first instead of 1.0.



using System;
using System.Net;

public class T {

    public static void Main ()
    {
        var request = (HttpWebRequest) WebRequest.Create (new Uri
("http://google.com/"));

        request.ProtocolVersion = new Version (1, 0);

        request.GetResponse ();


        request = (HttpWebRequest) WebRequest.Create (new Uri
("http://google.com/"));

        request.ProtocolVersion = new Version (1, 1);

        request.GetResponse ();
    }
}

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list