Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Using urrlib for https

Thread Tools

Using urrlib for https

G. Feldman
Posts: n/a
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 .

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,

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
server side redirect https => https NOT working Axel ASP General 8 04-27-2009 02:02 AM
https authentication & storing https page in string Naveen Dhanuka Ruby 1 09-19-2007 02:05 PM
open-uri and HTTPS, or net/https with a redirect jotto Ruby 4 10-02-2006 07:26 AM
Sign in using https becomes anonymous for pages using http Rujuta Gandhi ASP .Net Security 0 12-11-2004 06:55 AM
Redirect to a secure page using HTTPS without an absolute URL Pooja Renukdas ASP .Net 3 07-29-2003 02:19 PM