urllib en https

sp1d3rx at gmail.com sp1d3rx at gmail.com
Wed Sep 13 16:48:16 EDT 2006


please provide a sample program, which has the minimal functionality
necessary to reproduce this error. I've checked and the syntax hasn't
changed. Perhaps it's with the string you are passing as "fullurl".
Anyways, I can't really troubleshoot more than that without some code.

Cecil Westerhof wrote:
> Something went wrong with my last post. So, again:
>
> 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 2.4.1 (which is more recent) 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?




More information about the Python-list mailing list