Re: Problem with urllib2 and authentification

2008-04-22 Thread Gabriel Genellina
En Tue, 22 Apr 2008 11:24:20 -0300, Miguel Beltran R. <[EMAIL PROTECTED]> escribió: > Using this script for connect to Zope I have this error > > ---script: > import urllib2 > > protocolo='http://' > servidor='10.28.1.239/' > pagina='manage' > fullurl=protocolo+servidor+pagina > > aut=urllib2.HTT

Re: Problem with urllib2 and authentification

2008-04-22 Thread Rob Wolfe
Rob Wolfe <[EMAIL PROTECTED]> writes: >> ---script: >> import urllib2 >> >> protocolo='http://' >> servidor='10.28.1.239/' >> pagina='manage' >> fullurl=protocolo+servidor+pagina >> >> aut=urllib2.HTTPBasicAuthHandler() >> aut.add_password(realm=None, >> uri=servidor, >>

Re: Problem with urllib2 and authentification

2008-04-22 Thread Rob Wolfe
"Miguel Beltran R." <[EMAIL PROTECTED]> writes: > Using this script for connect to Zope I have this error You forgot to add the authentication handler to the list of handlers. See below. > > ---script: > import urllib2 > > protocolo='http://' > servidor='10.28.1.239/' > pagina='manage' > fullur

Problem with urllib2 and authentification

2008-04-22 Thread Miguel Beltran R.
Using this script for connect to Zope I have this error ---script: import urllib2 protocolo='http://' servidor='10.28.1.239/' pagina='manage' fullurl=protocolo+servidor+pagina aut=urllib2.HTTPBasicAuthHandler() aut.add_password(realm=None, uri=servidor, user='my