472,331 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,331 software developers and data experts.

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
3 1683
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: john | last post by:
The python libraries like urllib and httplib do not support ssl through a proxy. Urllib2 supports http through a proxy or https alone, but not...
1
by: Phillip | last post by:
Hi. I'm having some anoying trouble trying to establish a https connection. I've even switched Python Versions (from 2.2.3 to 2.3.3), but the...
22
by: Bloke | last post by:
Hi all. Some time ago (years) I had a script on Python 2.2 that would retieve a HTTPS web site. I used python22-win32-ssl.zip to handle the SSL...
2
by: Martin 'Kingpin' Thurn | last post by:
I'm running ActiveState perl build 806 on Win98. I want to GET an https page. So far I did this, which I found in another thread thanks to Google:...
3
by: Harlin Seritt | last post by:
I am trying to pull data from a web page at https://localhost/wps. While this would work if the url was http://localhost/wps, it doesn't work with...
5
by: Cecil Westerhof | last post by:
Something went wrong with my last post. So, again: I have a strange problem. I wrote a script that uses urllib.urlopen to fetch a page through...
1
by: cp.finances.gouv | last post by:
Hello all, I'm facing a strange behavior of urllib2 trying to access gmail account behind a proxy (Squid). The following works perfectly : ...
0
by: Jon | last post by:
Hi, I'm testing an application that sends an HTTPS GET request in the form of: ...
2
by: Dudeja, Rajat | last post by:
Hi, So, now I've finally started using Eclipse and PyDev as an IDE for my GUI Application. I just wrote some sample programs as an hands on. ...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.