urllib en https

C

Cecil Westerhof

I have a strange problem. I wrote a script that uses urllib.urlopen to fetch
a page through https. In Python 2.2.2 this works without a problem. But
when I use the script in Python I get:

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.4/urllib.py", line 79, in urlopen
return opener.open(url, data)
File "/usr/local/lib/python2.4/urllib.py", line 177, in open
return self.open_unknown(fullurl, data)
File "/usr/local/lib/python2.4/urllib.py", line 189, in open_unknown
raise IOError, ('url error', 'unknown url type', type)
IOError: [Errno url error] unknown url type: 'https'

What is happening here? And how can I solve this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top