Using urrlib for https

G

G. Feldman

I'm running Python 2.2 on MSWin XP. I can successfully download an
http page using urllib.urlopen. At first trying to download an https
page failed, so I downloaded and installed the SSL socket kit at
http://pypgsql.sourceforge.net/misc/python-ssl.html .

This seems to work for getting me the headers (at least it no longer
fails at the urlopen), but it now gives me

AttributeError: addinfourl instance has no attribute 'readlines'

Either I'm doing something dumb, or there's an inconsistency in that
the object returned by urlopen isn't the same type for http and https.

Thanks for any help,

Gary
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top