Re: urllib2 and HTTPBasicAuthHandler

2007-01-16 Thread Max Erickson
"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

Re: urllib2 and HTTPBasicAuthHandler

2007-01-16 Thread m.banaouas
Max, I verified and determined that Zope realm is "Zope", by tcp spy tool witch shows me the server headers. Actually, I tried differents ways without success. It seems like it's not so easy to negociate a basic authentication process with urllib2, while it's based on very simple specifications,

Re: urllib2 and HTTPBasicAuthHandler

2007-01-16 Thread Max Erickson
"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! > ...

urllib2 and HTTPBasicAuthHandler

2007-01-16 Thread m.banaouas
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 help