Basic Authentication and the .AddHeader

Results 1 to 2 of 2

Thread: Basic Authentication and the .AddHeader

  1. #1
    William Campbell Guest

    Default Basic Authentication and the .AddHeader

    Why would the following code not return anything listed in the Server Variables AUTH_USER, AUTH_PASS, AUTH_TYPE, LOGON_USER, or in other words how can I authenticate to a page via the header without the user logging in at all?<BR><BR>&#060;%<BR>response.Expires = 0<BR>response.Buffer= TRUE<BR>response.clear<BR><BR>szAuth = "Basic bnJjXHdjYW1wYmVsOmZsc3RhdGUxCg=="<BR>Response.Addh eader "Authorization", szAuth<BR><BR>for each thing in request.servervariables<BR>tempvalue=request.serve rvariables(thing)<BR>response.write thing & "=" & tempvalue & "<BR>" <BR>next<BR><BR>response.end<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Basic Authentication and the .AddHeader

    I would suspect because the user&#039s authetication details come from the *request* header, while .AddHeader adds a field to the *response* header.<BR><BR>I may be wrong...<BR><BR>Dunc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts