Getting username and passwd from IE

Martin Beckett mgb at mgbeckett.com
Thu Mar 25 12:18:06 CET 2004


> Don't know about BaseHTTPServer in particular, but in general 401 must be
> used in conjunction with the WWW-Authenticate response header, or the browser
> won't know what kind of authentication to send.
> 
>   self.send_header('WWW-Authenticate', 'basic realm="Fab site"')

 Thank you  that works - specifically:

   self.send_response(401)
   self.send_header('WWW-Authenticate','basic')
   self.end_headers

And to help other searches:  Internet Explorer force send username
password authentication AUTHORIZATION



More information about the Python-list mailing list