BUG: The Request.ServerVariables("AUTH_PASSWORD") object does not display certain characters from an ASPX page (835388)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft .NET Framework 1.0
SYMPTOMSWhen an ASPX page is requested with a password that has
characters such as Æ, ç, ?, o, z, or £, the
Request.ServerVariables("AUTH_PASSWORD") object omits these characters when the password is
displayed.WORKAROUNDTo work around the behavior that is described in the
"Symptoms" section of this article, follow these steps:
- Start Notepad.
- Paste the following code in Notepad:
<%
Dim header as string
Dim ticket as string
Dim GetAuthPassword as string
header=Request.ServerVariables("HTTP_AUTHORIZATION")
If header.StartsWith("Basic") or header ="" then
ticket = header.Substring(6)
ticket = System.Text.Encoding.Default.GetString(Convert.FromBase64String(ticket))
response.write(ticket.Substring((ticket.IndexOf(":")+1)))
GetAuthPassword =ticket.Substring((ticket.IndexOf(":")+1))
end if
%>
AUTH_USER=<%=Request.ServerVariables("AUTH_USER") %><br>
AUTH_PAssword=<%=GetAuthPassword%> - Save the file as
ExampleASPX.aspx.
Note ExampleASPX.aspx is a placeholder for
the name of the .aspx file.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed in the "Applies to" section of this
article.REFERENCESFor more information, visit the following Microsoft
Developer Network (MSDN) Web sites:
Modification Type: | Major | Last Reviewed: | 2/24/2004 |
---|
Keywords: | kbAuthentication kbUser kbSymbols kbServer kbhttp kbbug KB835388 kbAudDeveloper |
---|
|