https on ActiveState Python 2.4?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jack

    #1

    https on ActiveState Python 2.4?

    I'm trying to use urllib to retrieve an https page but I am
    getting an "unknown url type: https"

    It seems that ActiveState Python doesn't have SSL support.
    Any advice?


  • Jack

    #2
    Re: https on ActiveState Python 2.4?

    Thanks for the reply.

    I found some openSSL patches for earlier versions of ActiveState Python.
    It involves .pyd files and they look for earlier versions of Python DLLs and
    don't
    run on ActiveState Python 2.4. I suspect the regular Python solution would
    have the same problem or even more problems because it's not a pure .py
    patch.

    "Dennis Lee Bieber" <wlfraed@ix.net com.comwrote in message
    news:422le2df66 glvl0hp6itavd5f loh82a8cd@4ax.c om...
    On Mon, 21 Aug 2006 15:31:20 -0700, "Jack" <nospam@invalid .com>
    declaimed the following in comp.lang.pytho n:
    >
    >I'm trying to use urllib to retrieve an https page but I am
    >getting an "unknown url type: https"
    >>
    >It seems that ActiveState Python doesn't have SSL support.
    >Any advice?
    >>
    >
    I've not tried, but it may be that the "regular" Python (of the same
    language level) may have SSL as a DLL/PYD & .py set and you could just
    copy them into the ActiveState install directory...
    --
    Wulfraed Dennis Lee Bieber KD6MOG
    wlfraed@ix.netc om.com wulfraed@bestia ria.com

    (Bestiaria Support Staff: web-asst@bestiaria. com)
    HTTP://www.bestiaria.com/

    Comment

    • Fredrik Lundh

      #3
      Re: https on ActiveState Python 2.4?

      Jack wrote:
      Thanks for the reply.
      >
      I found some openSSL patches for earlier versions of ActiveState Python.
      It involves .pyd files and they look for earlier versions of Python DLLs and
      don't run on ActiveState Python 2.4. I suspect the regular Python solution would
      have the same problem or even more problems because it's not a pure .py
      patch.
      huh? the "regular Python solution" ships with a perfectly working SSL
      library (in DLLs/_ssl.pyd), which look for the appropriate version of
      the Python DLL:
      dumpbin /imports "\python24\DLLs \_ssl.pyd"
      Microsoft (R) COFF Binary File Dumper Version 6.00.8168
      Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

      Dump of file \python24\DLLs\ _ssl.pyd

      File Type: DLL

      Section contains the following imports:

      WSOCK32.dll
      ...
      python24.dll
      ...

      (what's the point in using ActiveState's crippled distribution if you
      need stuff that's shipped with the standard distro, btw? why not just
      use the standard version, and install win32all on top of that?)

      </F>

      Comment

      • Jack

        #4
        Re: https on ActiveState Python 2.4?

        Thanks Dennis and Fredrik. This actualy works! I just copyed _socket.pyd and
        _ssl.pyd
        from regular Python 2.4.3 into the DLLs directory of the ActiveState Python
        installation.
        urllib2.urlopen () starts working for https links :)

        I copied ssleay32.dll and libeay32.dll earlier.

        "Fredrik Lundh" <fredrik@python ware.comwrote in message
        news:mailman.96 59.1156272327.2 7775.python-list@python.org ...
        Jack wrote:
        >Thanks for the reply.
        >>
        >I found some openSSL patches for earlier versions of ActiveState Python.
        >It involves .pyd files and they look for earlier versions of Python DLLs
        >and don't run on ActiveState Python 2.4. I suspect the regular Python
        >solution would
        >have the same problem or even more problems because it's not a pure .py
        >patch.
        >
        huh? the "regular Python solution" ships with a perfectly working SSL
        library (in DLLs/_ssl.pyd), which look for the appropriate version of the
        Python DLL:
        >
        dumpbin /imports "\python24\DLLs \_ssl.pyd"
        Microsoft (R) COFF Binary File Dumper Version 6.00.8168
        Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
        >
        Dump of file \python24\DLLs\ _ssl.pyd
        >
        File Type: DLL
        >
        Section contains the following imports:
        >
        WSOCK32.dll
        ...
        python24.dll
        ...
        >
        (what's the point in using ActiveState's crippled distribution if you need
        stuff that's shipped with the standard distro, btw? why not just use the
        standard version, and install win32all on top of that?)
        >
        </F>
        >

        Comment

        Working...