faqts : Computers : Programming : Languages : Python : Modules : urllib

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 7 people (100%) answered Yes
Recently 6 of 6 people (100%) answered Yes

Entry

How do I connect (as a client) to an HTTPs secure server?

Nov 26th, 2002 06:30
Gerhard Haering, Jeff Shannon,


Just use a HTTPS URL, like this:
urllib.urlopen("https://sf.net").read()
If this doesn't work, then most probably your Python isn't compiled with
SSL support. Current Windows versions of Python aren't, but there's a
cure a this page: http://pypgsql.sourceforge.net/misc/python-ssl.html