Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > add HTTP headers for authentication

Reply
Thread Tools

add HTTP headers for authentication

 
 
Matt
Guest
Posts: n/a
 
      09-18-2004
If I want to have a username/password dialog in my page, how can I add
http header in ASP for username/password dialog? I want to hardcode
the username/password in my page and check the authentication.

Please advise. thanks!!


 
Reply With Quote
 
 
 
 
Ken Schaefer
Guest
Posts: n/a
 
      09-19-2004
You set the HTTP status to 401
You then need to add "WWW-Authenticate" headers for each type of
authentication that the server supports (eg Negotiate for Kerberos, NTLM for
NTLM, Digest for Digest or Advanced Digest, Basic for Basic). Additionally,
for those authentication mechanisms that are challenge/response (eg Digest,
NTLM) you need to add the challenge part.

Cheers
Ken

"Matt" <> wrote in message
news:...
> If I want to have a username/password dialog in my page, how can I add
> http header in ASP for username/password dialog? I want to hardcode
> the username/password in my page and check the authentication.
>
> Please advise. thanks!!
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send Basic HTTP authentication credential in the first HTTP request Nacho Nachev ASP .Net Web Services 2 09-05-2012 08:49 PM
HTTP SOAP/HTTP GET/HTTP POST milan_9211 Software 0 01-10-2011 02:10 PM
Problem with wsgiref.headers.Headers Phil Python 4 01-17-2010 04:47 PM
Server cannot clear headers after HTTP headers have been sent Ian ASP .Net Security 2 03-20-2007 09:00 AM
Reading 'received' headers: Email Headers Parsing dont bother Python 0 03-03-2004 08:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57