Using urrlib for https

Discussion in 'Python' started by G. Feldman, Aug 13, 2003.

  1. G. Feldman

    G. Feldman Guest

    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
    G. Feldman, Aug 13, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pooja Renukdas
    Replies:
    3
    Views:
    6,622
    Matt Sollars
    Jul 29, 2003
  2. Rujuta Gandhi

    Sign in using https becomes anonymous for pages using http

    Rujuta Gandhi, Dec 11, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    102
    Rujuta Gandhi
    Dec 11, 2004
  3. Axel
    Replies:
    8
    Views:
    1,086
    Adrienne Boswell
    Apr 27, 2009
  4. jotto
    Replies:
    4
    Views:
    385
    jotto
    Oct 2, 2006
  5. Naveen Dhanuka
    Replies:
    1
    Views:
    278
Loading...

Share This Page