Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > https on ActiveState Python 2.4?

Reply
Thread Tools

https on ActiveState Python 2.4?

 
 
Jack
Guest
Posts: n/a
 
      08-21-2006
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?


 
Reply With Quote
 
 
 
 
Dennis Lee Bieber
Guest
Posts: n/a
 
      08-22-2006
On Mon, 21 Aug 2006 15:31:20 -0700, "Jack" <>
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

HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: web-)
HTTP://www.bestiaria.com/
 
Reply With Quote
 
 
 
 
Jack
Guest
Posts: n/a
 
      08-22-2006
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" <> wrote in message
news:...
> On Mon, 21 Aug 2006 15:31:20 -0700, "Jack" <>
> 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
>
> HTTP://wlfraed.home.netcom.com/
> (Bestiaria Support Staff: web-)
> HTTP://www.bestiaria.com/



 
Reply With Quote
 
Fredrik Lundh
Guest
Posts: n/a
 
      08-22-2006
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>

 
Reply With Quote
 
Jack
Guest
Posts: n/a
 
      08-22-2006
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" <> wrote in message
news:mailman.9659.1156272327.27775.python-...
> 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>
>



 
Reply With Quote
 
 
 
Reply

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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where Find Activestate Python 2.5? W. eWatson Python 2 01-11-2009 11:29 PM
Activestate python installation mik3 Python 3 02-21-2006 12:52 AM
ActiveState Python 2.4 Woes Chuck Python 1 12-18-2004 07:06 PM
Why Activestate Python ? Fuzzyman Python 7 04-15-2004 01:09 PM
how to get https pages with ActiveState build 806 Martin 'Kingpin' Thurn Perl 2 07-28-2003 01:00 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57