[Mono-bugs] [Bug 80443][Wis] New - HttpWebRequest with Basic Authentication (and, at least, the PUT verb) doesn't work

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 3 13:37:38 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 mvellon at centeris.com.


--- shadow/80443	2007-01-03 13:37:38.000000000 -0500
+++ shadow/80443.tmp.32637	2007-01-03 13:37:38.000000000 -0500
@@ -0,0 +1,56 @@
+Bug#: 80443
+Product: Mono: Class Libraries
+Version: 1.2
+OS: SUSE 9.2
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mvellon at centeris.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: HttpWebRequest with Basic Authentication (and, at least, the PUT verb) doesn't work
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+Steps to reproduce the problem:
+1. Set up a web site to test against. Require Basic authentication. Set 
+up a username/password that can access the web site.
+2. Run the attached test program, e.g.:
+ssltest --ssl:n --url:http://mytestsite/mydir --user:myuser --
+3. Compare results on Windows (with Microsoft libs) v. Suse92 (at least) 
+with mono
+Actual Results:
+Works on Windows/MS; doesn't on Linux/Mono. On Windows/MS, you will 
+probably get a 501 Not Implemented error since the program uses the PUT 
+verb which your site will not likely be set up to accept. On Linux, you 
+will get a 401 Unauthorized error.
+Expected Results:
+Should work identically on both.
+How often does this happen? 
+Additional Information:
+If you run a TCP trace, you will see that the Windows/MS version will 
+send the original request, get a 401 error and will then resend the 
+request with the appropriate Basic authentication header. The mono 
+version will not do this.

More information about the mono-bugs mailing list