urllib2 request blocks

Christophe Cavalaria chris.cavalaria at free.fr
Tue Apr 27 05:42:39 EDT 2004


Derek Fountain wrote:
> I just tried this:
> 
> 
>>>>import urllib2
>>>>urllib2.urlopen( "https://passenger.ssc.com/~dmarti/contrib-faq/" )
> 
> 
> It sits forever. Loading that URL in a normal browser gets me a popup asking
> about server certificate authenticity, which presumably is what urllib2 is
> blocking at.
> 
> How can I prepare my code for this eventuality and ensure it doesn't block?

You can try to write the URL like that :

"https://username:password@passenger.ssc.com/~dmarti/contrib-faq/"



More information about the Python-list mailing list