Hi all,
I started to use urllib2 library and HTTPBasicAuthHandler class in order
to authenticate with a http server (Zope in this case).
I don't know why but it doesn't work, while authenticating with direct
headers manipulation works fine!
WinXP Sp2
Python 2.4.4
Thanks in advance for your
m.banaouas [EMAIL PROTECTED] wrote:
Hi all,
I started to use urllib2 library and HTTPBasicAuthHandler class
in order to authenticate with a http server (Zope in this case).
I don't know why but it doesn't work, while authenticating with
direct headers manipulation works fine!
...
port
combination
passman.add_password(None, auth_url, data['user'] , data['pass'])
# create the AuthHandler
auth_handler = urllib2.HTTPBasicAuthHandler(passman)
# build an 'opener' using the handler we've created
opener = urllib2.build_opener(auth_handler)
urllib2.install_opener(opener
m.banaouas [EMAIL PROTECTED] wrote:
...
passman.add_password(None, auth_url, data['user'] ,
...
The only thing I can come up with is that auth_url can't begin with a
protocol, like http:// or whatever.
max
--
http://mail.python.org/mailman/listinfo/python-list