urllib2 authentication problems!

Gerhard Häring gh at ghaering.de
Fri Mar 7 15:24:59 EST 2003


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