https://bugzilla.novell.com/show_bug.cgi?id=722581
https://bugzilla.novell.com/show_bug.cgi?id=722581#c0 Summary: HttpRequest.Method always "GET" even when created with OpenWrite, 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.mil...@suse.com ReportedBy: jtaylor.deb...@googlemail.com QAContact: mono-bugs@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 Firefox/7.0.1 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: OpenWrite: http://msdn.microsoft.com/en-us/library/3t27yce3.aspx "This method uses the STOR command to upload an FTP resource. For an HTTP resource, the POST method is used." OpenRead: http://msdn.microsoft.com/en-us/library/781fwaz8.aspx "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. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs