[Mono-bugs] [Bug 80686][Nor] New - HttpWebRequest does not send requests with DELETE/OPTIONS/TRACE Method

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 31 07:59:10 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by dave at digi-link.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80686

--- shadow/80686	2007-01-31 07:59:10.000000000 -0500
+++ shadow/80686.tmp.10835	2007-01-31 07:59:10.000000000 -0500
@@ -0,0 +1,60 @@
+Bug#: 80686
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: dave at digi-link.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: HttpWebRequest does not send requests with DELETE/OPTIONS/TRACE Method
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+When the Method property of HttpWebRequest is set to a method such as 
+DELETE, OPTIONS or TRACE, a connection is made to the server but no data 
+is transmitted. Ultimately a WebException is thrown with status = Timeout
+
+Steps to reproduce the problem:
+Use this code snippet
+
+try
+{
+   HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create 
+("http://news.bbc.co.uk");
+   request.Method = "OPTIONS";
+   WebResponse response = request.GetResponse ();
+   Console.WriteLine (response.Headers ["Allow"]);
+   response.Close ();
+}
+catch (WebException err)
+{
+   Console.WriteLine (err.Message);
+}
+
+Actual Results:
+Text written to console is "The request timed out";
+
+Expected Results:
+Text written to console under .Net is "GET,HEAD,POST,OPTIONS,TRACE"
+
+
+How often does this happen? 
+Every time
+
+Additional Information:
+BBC News Website used simply because it responds to the OPTIONS method.
+This behaviour occurs on requests to any website.
+
+Observing via Ethereal shows a connection apparently being made, but no 
+data is transmitted. Eventually the connection times out on the client, 
+but the server may respond with "Bad Request"


More information about the mono-bugs mailing list