OWA (Outlook Web Access) with urllib2
Michael Foord
fuzzyman at gmail.com
Tue Sep 28 11:42:03 EDT 2004
pascal.parent at free.fr (Pascal) wrote in message news:<e567c03a.0409272318.5019ef46 at posting.google.com>...
> Effectively, if you look at http://python.org/2.4/NEWS.html you can
> see that
> urllib2 now recognizes Basic authentication even if other
> authentication schemes are offered.
>
> In LiveHTTPheaders/Firefox debug, there is
> WWW-Authenticate: Negotiate
> WWW-Authenticate: NTLM
> WWW-Authenticate: Basic realm="owa.mydomain"
> and the basic authentification is the last proposed.
>
> So now, how can I force basic authentification with urllib2 (without
> using Python 2.4a)?
You can do manual basic authentication.
See http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305288
Regards,
Fuzzy
http://www.voidspace.org.uk/atlantibots/pythonutils.html
More information about the Python-list
mailing list