[Tutor] How to use urllib2.https_open with SSL support in Windows XP for python 2.5.2]

arsyed arsyed at gmail.com
Mon Aug 18 22:57:38 CEST 2008


On Mon, Aug 18, 2008 at 4:25 PM, bob gailer <bgailer at gmail.com> wrote:
> Forwarding to the list. Please always reply to the list.
>
> --
> Bob Gailer
> Chapel Hill NC 919-636-4239
>
> When we take the time to be aware of our feelings and needs we have more
> satisfying interatctions with others.
>
> Nonviolent Communication provides tools for this awareness.
>
> As a coach and trainer I can assist you in learning this process.
>
> What is YOUR biggest relationship challenge?
>
>
> I wanted to use the urllib2.https_open()  but it said the module did not
> exist. The manual says I need SSL support installed. I've done some
> searching.. but I haven't been able to find an official implementation of
> SSL support for python 2.5 for windows. If its required for urllib2 I assume
> its part of the official python library of modules, is there an MSI
> installer or official place to get the SSL support that was mentioned in the
> urllib2 doc page? I just want to use the https capability of urllib2.
>
>
> -thanks
>


Calling urlopen with an https scheme should be sufficient as long as
python with SSL support is installed.  I have the ActiveState Python
2.5.2 distribution on Windows XP and it seems to work fine:

In [3]: response = urllib2.urlopen('https://google.com')

In [4]: response = urllib2.urlopen('https://mail.google.com')

In [5]: html = response.read()


More information about the Tutor mailing list