[Mono-bugs] [Bug 675731] New: System.Net.HttpWebRequest does not normalize Method property to uppercase

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 28 16:33:05 EST 2011


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

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


           Summary: System.Net.HttpWebRequest does not normalize Method
                    property to uppercase
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: i686
        OS/Version: IRIX
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: smoorhouse at provistas.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US)
AppleWebKit/534.20 (KHTML, like Gecko) Chrome/11.0.672.2 Safari/534.20

When setting the Method property of an instance of HttpWebRequest, the
Microsoft .NET library normalizes the method type to uppercase. Mono 2.10 does
not. Since that value is copied into the web request sent to the remote server,
it may not understand the lowercase request verb.


Reproducible: Always

Steps to Reproduce:
            HttpWebRequest webReq =
(HttpWebRequest)HttpWebRequest.Create("http://www.example.com/");
webReq.Method = "post";

Console.WriteLine(webReq.Method);
Actual Results:  
post

Expected Results:  
POST

-- 
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