Getting username and passwd from IE
Andrew Clover
and-google at doxdesk.com
Wed Mar 24 15:50:02 EST 2004
mgb at mgbeckett.com (Martin Beckett) wrote:
> self.send_response(401)
> self.end_headers()
> return
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"')
--
Andrew Clover
mailto:and at doxdesk.com
http://www.doxdesk.com/
More information about the Python-list
mailing list