[Mono-bugs] [Bug 80879][Nor] New - Basic authorization web page access fails under mono if compiled in Visual Studio 2005
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Feb 16 23:03:24 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 howstheserenitynow at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80879
--- shadow/80879 2007-02-16 23:03:24.000000000 -0500
+++ shadow/80879.tmp.7914 2007-02-16 23:03:24.000000000 -0500
@@ -0,0 +1,72 @@
+Bug#: 80879
+Product: Mono: Runtime
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: HowsTheSerenityNow at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Basic authorization web page access fails under mono if compiled in Visual Studio 2005
+
+Description of Problem:
+Basic authorization of web page is not attempted under mono if program is
+compiled in Visual Studio 2005, works fine under .Net or if compiled under
+mono with mcs.
+
+Steps to reproduce the problem:
+1. Compile the program under Visual Studio 2005
+2. 'mono authtest.exe "http://minnie.tuhs.org/tivo-bin/xmlguide.pl"
+username password' Or other webpage that requires basic authrization.
+3. Use legit username password and see it throw exception. Or use any
+username password and capture packets to see it never responds
+to "Authorization Required".
+
+Actual Results:
+
+Throws exception "Unhandled Exception: System.Net.WebException: The remote
+server returned an error: (401) Authorization Required."
+
+
+Expected Results:
+
+Respond to "HTTP/1.1 401 Authorization Required"
+And with legit username and password get OK response.
+
+
+How often does this happen? Always
+
+
+Additional Information:
+
+namespace authtest
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ string Website = args[0], UserName = args[1], Password = args
+[2];
+ System.Console.WriteLine("Website='{0}' UserName='{1}'
+Password='{2}'", Website, UserName, Password);
+
+ System.Net.WebRequest myWebRequest =
+System.Net.WebRequest.Create(Website);
+ myWebRequest.Credentials = new System.Net.NetworkCredential
+(UserName, Password);
+ System.Net.HttpWebResponse response =
+(System.Net.HttpWebResponse)myWebRequest.GetResponse();
+ //Unhandled Exception: System.Net.WebException: The remote
+server returned an error: (401) Authorization Required.
+ System.Console.WriteLine("StatusDescription='{0}'",
+response.StatusDescription);
+ }
+ }
+}
More information about the mono-bugs
mailing list