asp +winhttp +negotiation authentification +auto login [Answered]RSS

3 replies

Last post Sep 28, 2004 12:32 PM by tomkmvp

  • asp +winhttp +negotiation authentification +auto login

    Sep 28, 2004 10:20 AM|bernes|LINK

    hi, i have searched lot of pages about winhttp but i have nothing found like an example script, can you post me an example script... in php i can do this very well: ?php if (!isset($_SERVER['PHP_AUTH_USER'])) { Header("WWW-Authenticate: Basic realm=\"My Realm\""); Header("HTTP/1.0 401 Unauthorized"); echo "Text to send if user hits Cancel button\n"; exit; } else { echo "Hello {$_SERVER['PHP_AUTH_USER']}"; echo "

    You entered {$_SERVER['PHP_AUTH_PW']} as your password.

    "; } ?> please help me thx bernes
  • Re: asp +winhttp +negotiation authentification +auto login

    Sep 28, 2004 11:59 AM|tomkmvp|LINK

    In ASP/VBscript:
    Tom Kaminski (former IIS MVP 2002-2010)
    http://mvp.support.microsoft.com/
  • Re: asp +winhttp +negotiation authentification +auto login

    Sep 28, 2004 11:59 AM|tomkmvp|LINK

    In ASP/VBscript: If Request.ServerVariables("LOGON_USER") = "" Then Response.Status = "401 access denied" Else Response.Write "Hello " & Request.ServerVariables("LOGON_USER") Response.Write "

    You entered " & Request.ServerVariables("AUTH_PASSWORD") & " as your password.

    " End If
    Tom Kaminski (former IIS MVP 2002-2010)
    http://mvp.support.microsoft.com/
  • Re: asp +winhttp +negotiation authentification +auto login

    Sep 28, 2004 12:32 PM|tomkmvp|LINK

    also, FWIW, the word is "authentication". : )
    Tom Kaminski (former IIS MVP 2002-2010)
    http://mvp.support.microsoft.com/