[Mono-bugs] [Bug 722581] New: HttpRequest.Method always "GET" even when created with OpenWrite,

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 6 16:44:32 EDT 2011



           Summary: HttpRequest.Method always "GET" even when created with
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: michael.miller at suse.com
        ReportedBy: jtaylor.debian at googlemail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=454955)
 --> (http://bugzilla.novell.com/attachment.cgi?id=454955)
source file which prints the Method

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101

HttpRequest.Method is always set to "GET" even when the request was created by
an OpenWrite from a WebClient.
This is documented:
"System.Net.WebRequest.Method Property
 For the HTTP protocol, this value is GET."

The write is done correctly with POST later but in Microsoft implementation it
behaves different. There Method is set to "GET" when opened with OpenRead and
"POST" when opened with OpenWrite.
This is also kind of documented in msdn:
"This method uses the STOR command to upload an FTP resource. For an HTTP
resource, the POST method is used."
"This method uses the RETR command to download an FTP resource. For an HTTP
resource, the GET method is used."

Reproducible: Always

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

More information about the mono-bugs mailing list