urllib2 authentication problems!

Anand B Pillai abpillai at lycos.com
Mon Mar 10 01:20:14 EST 2003


Hi Gerhard

 That worked! Btw could you tell me how I can write my own ssl handler
by using sockets in python. I am not much familiar with socket programming
but am always willing to learn.

Thanks

Anand

Gerhard Häring <gh at ghaering.de> wrote in message news:<b4av6s$1u4ifh$1 at ID-124666.news.dfncis.de>...
> Anand B Pillai wrote:
> > Hi
> >   I am using urllib2 in my application to open a url which needs
> > validation
> > using https username/password. I am using python 2.2.1 on Windows nt
> > 4.0.
> > [...]
> >  The validation for the realm I am requesting is done through https
> > and not http. What is the mistake I am making here. I cannot
> > understand the error message since I thought that python 2.1 upwards
> > had builtin https url support.
> 
> Python supports SSL since 2.1 but the Windows binaries do not (they will 
> in 2.3).
> 
> I've once built a SSL enabled _socket.pyd replacement for 2.2.x that 
> you'll need to install:
> 
> http://pypgsql.sourceforge.net/misc/python-ssl.html
> 
> -- Gerhard




More information about the Python-list mailing list