467,074 Members | 880 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

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?
Aug 21 '06 #1
  • viewed: 1528
Share:
3 Replies
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" <wl*****@ix.netcom.comwrote in message
news:42********************************@4ax.com...
On Mon, 21 Aug 2006 15:31:20 -0700, "Jack" <no****@invalid.com>
declaimed the following in comp.lang.python:
>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
wl*****@ix.netcom.com wu******@bestiaria.com
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: we******@bestiaria.com)
HTTP://www.bestiaria.com/

Aug 22 '06 #2
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>

Aug 22 '06 #3
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" <fr*****@pythonware.comwrote in message
news:ma***************************************@pyt hon.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>

Aug 22 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Phillip | last post: by
22 posts views Thread by Bloke | last post: by
2 posts views Thread by Martin 'Kingpin' Thurn | last post: by
3 posts views Thread by Harlin Seritt | last post: by
5 posts views Thread by Cecil Westerhof | last post: by
1 post views Thread by cp.finances.gouv@gmail.com | last post: by
reply views Thread by Jon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.