[Mono-bugs] [Bug 43349][Maj] New - Credentials property of System.Net.HttpWebRequest does not work

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 20 May 2003 00:37:00 -0400 (EDT)

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 mdamt@bisnisweb.com.


--- shadow/43349	Tue May 20 00:37:00 2003
+++ shadow/43349.tmp.28655	Tue May 20 00:37:00 2003
@@ -0,0 +1,41 @@
+Bug#: 43349
+Product: Mono/Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mdamt@bisnisweb.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Credentials property of System.Net.HttpWebRequest does not work
+Description of Problem:
+Basic auth in System.Net.HttpWebRequest can be set from Credentials property.
+Currently this property does nothing and sends no auth info (RFC2617) to
+the server which will cause http error 401.
+Steps to reproduce the problem:
+1. Create a simple http client, set the Credentials propery
+2. make a request to a web server which configured to use Basic
+Authentication method
+Actual Results:
+HttpWebRequest does not set "Authorization" header, so web server will deny
+the request by issuing error "401 Unauthorized"
+Expected Results:
+HttpWebRequest sets "Authorization: Basic user-pass-base64" which
+user-pass-base64 is a base 64 string of "username:password"
+(according to the mentioned RFC)
+How often does this happen? 
+Additional Information: