[Mono-bugs] [Bug 74745][Nor] New - http basic credentials are being encoded using utf-8 char set
Tue, 26 Apr 2005 15:38:33 -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 firstname.lastname@example.org.
--- shadow/74745 2005-04-26 15:38:33.000000000 -0400
+++ shadow/74745.tmp.13471 2005-04-26 15:38:33.000000000 -0400
@@ -0,0 +1,68 @@
+Product: Mono: Class Libraries
+OS: SLES 9
+Summary: http basic credentials are being encoded using utf-8 char set
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+The http basic credentials that are sent by a web client are encoded
+using the utf-8 character set before they are uuencoded and set in the
+According the the RFCs for the HTTP protocol and HTTP authentication:
+(RFC 2617 Section 2)
+To receive authorization, the client sends the userid and password,
+ separated by a single colon (":") character, within a base64 
+ encoded string in the credentials.
+ basic-credentials = base64-user-pass
+ base64-user-pass = <base64  encoding of user-pass,
+ except not limited to 76 char/line>
+ user-pass = userid ":" password
+ userid = *<TEXT excluding ":">
+ password = *TEXT
+(RFC 2616 Section 2.2)
+The TEXT rule is only used for descriptive field contents and values
+ that are not intended to be interpreted by the message parser. Words
+ of *TEXT MAY contain characters from character sets other than ISO-
+ 8859-1  only when encoded according to the rules of RFC 2047
+So according to how I understand this the default character set for the
+unicode to byte encoding should be ISO-8859-1.
+Steps to reproduce the problem:
+How often does this happen?