Some people tipped me off on some possibilities to tackle my https
problem. Those have definitely gotten me further in cornering the
problem. Thank you.
But:
No matter what I do to open a webconnection with httpS I always get
something in this Area:
urllib2.URLErro r: <urlopen error unknown url type: https>
With both versions of Python mentioned above.
My strong suspicion is that the socket stuff (dunno exact libname right
now...) is compiled without ssl support.
What I would like to know now is following:
1) What is the default setting for the compilation of the original
Python source? _With_or _without_ ssl support?
I just downloaded the sources onto Debian Linux and did the configure,
make, make install dance. No fumbling on my side done here.
Is there anybody I could ask who could know? Appart from bugging Guido
van Rossum over this that is. :-)
2) If this can't be said for shure _how_ can I find out if my version of
Python was compiled with ssl support? Apart from trying to connect via
https that is. Like I said: I've got a seriously growing suspicion that
it _is_ unsupported ssl due to compilation.
3) Where do I change the compile options (???), switches (???) - I don't
know how excactly this stuff is called - to set such stuff as what
things are compiled into the installation and which aren't. This is a
more general Linux/make/configure/gcc/whatnot sort of question, I know,
but I would be gratefull for any help.
Thank you.
Phillip 3 2602
On Wed May 19 2004 16:12, Phillip wrote: No matter what I do to open a webconnection with httpS I always get something in this Area: urllib2.URLErro r: <urlopen error unknown url type: https>
With both versions of Python mentioned above.
My strong suspicion is that the socket stuff (dunno exact libname right now...) is compiled without ssl support.
What I would like to know now is following:
1) What is the default setting for the compilation of the original Python source? _With_or _without_ ssl support?
I just downloaded the sources onto Debian Linux and did the configure, make, make install dance. No fumbling on my side done here.
2) If this can't be said for shure _how_ can I find out if my version of Python was compiled with ssl support? Apart from trying to connect via https that is. Like I said: I've got a seriously growing suspicion that it _is_ unsupported ssl due to compilation.
I'm using python 2.3 in debian (package: python version 2.3.1-3) and has
ssl support. You may try:
aweil@tenuki:~$ python
Python 2.3.1 (#2, Sep 30 2003, 00:50:40)
[GCC 3.3.2 20030908 (Debian prerelease)] on linux2
Type "help", "copyright" , "credits" or "license" for more information. import socket socket.ssl(-1)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/socket.py", line 73, in ssl
return _realssl(sock, keyfile, certfile)
TypeError: ssl() argument 1 must be _socket.socket, not int
socket.ssl function is used to handshake ssl over a socket..
Sometimes I had problems using ssl with urllib, and proxies.
So I wrote: http://ahttplib.sf.net/ There aren't packages for
install ready, but you can download it from cvs (*) (its 4 files).
The main file, includes some usage example, in its unittest
section.
Good luck and tell me if I can help you.
david
(*) http://cvs.sourceforge.net/viewcvs.p...plib/ahttplib/
--
+ There is no dark side of the moon really. Matter of fact it's all dark.
On Wed, 19 May 2004, Phillip wrote: My strong suspicion is that the socket stuff (dunno exact libname right now...) is compiled without ssl support.
What I would like to know now is following:
1) What is the default setting for the compilation of the original Python source? _With_or _without_ ssl support?
The ssl support, on both 2.2.x and 2.3.x, is built via the setup.py script
which gets run after the interpreter itself is built. If setup.py can
find the SSL headers, it will attempt to build with SSL support.
I just downloaded the sources onto Debian Linux and did the configure, make, make install dance. No fumbling on my side done here.
Is there anybody I could ask who could know? Appart from bugging Guido van Rossum over this that is. :-)
You didn't inspect the logs from the make process? the output from
setup.py towards the end will give clues as to whether SSL support was
included.
2) If this can't be said for shure _how_ can I find out if my version of Python was compiled with ssl support? Apart from trying to connect via https that is. Like I said: I've got a seriously growing suspicion that it _is_ unsupported ssl due to compilation.
For 2.3.x, there will be a _ssl.so to go with the _socket.so.
There is no visible indication with 2.3.x.
3) Where do I change the compile options (???), switches (???) - I don't know how excactly this stuff is called - to set such stuff as what things are compiled into the installation and which aren't. This is a more general Linux/make/configure/gcc/whatnot sort of question, I know, but I would be gratefull for any help.
Build options for SSL support are in setup.py.
Linux distros tend to "localise" anything and everything, so its not
possible that setup.py is not finding the SSL headers because they're
not where non-Debian people expect them to be. Added to the fact that
Linux distros also seem to go overboard in separating "developer" bits
(like header files) from "applicatio n bits". If you need the headers, you
need to install the apropriate developer packages.
I would have expected the Debian package of Python to have SSL support
though, unless its an optional package...
--
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: an*****@bullsey e.apana.org.au (pref) | Snail: PO Box 370 an*****@pcug.or g.au (alt) | Belconnen ACT 2616
Web: http://www.andymac.org/ | Australia
Andrew MacIntyre <an*****@bullse ye.apana.org.au > writes: On Wed, 19 May 2004, Phillip wrote:
[...] I just downloaded the sources onto Debian Linux and did the configure, make, make install dance.
[...]
Me too (on Debian woody).
Install libssl0.9.6 (or a newer version, maybe) AND libssl-dev, and
recompile. Or install a debian binary package of Python 2.3.
John This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Gary Feldman |
last post by:
I think I've found a deficiency in the design of urllib related to https.
In order to complete an https connection, it appears that URLOpener and
hence FancyURLOpener require the key and cert files. Or at least, it's not
clear from the description of socket.ssl what it does if they're omitted.
However, urlopen has no way to specify such things. Nor should it - for
typical uses, a person simply trying to retrieve data from an ssl site...
|
by: Paul Sweeney |
last post by:
Does anyone know of a working (python) https proxy which allows viewing of
unencrypted data being sent from my browser to an https site?
I've worked my way through most on the list at
http://xhaus.com/alan/python/proxies.html, but while many claim to support
https, if you actually point your browser at the proxies, they work fine for
http, but not for https pages.
TIA
|
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 aspect
and it worked wonderfully. I am revisiting the project and need to
update it to Python 2.4.1. python22-win32-ssl.zip isn't compatable
(duh) and I can't find a newer version. I have had a search and can't
find anything to point me in the right direction.
Can someone please help?
|
by: zn |
last post by:
This is a beginner question. I need to create a page that is encrypted by
SSL. The web server is already serving SSL encrypted web pages with
"https" before the link. Do I need to do anything other than putting
"https" at the start of the link to make the webserver to client
communication encrypted?
Thanks.
|
by: Jim Bancroft |
last post by:
Hi everyone,
I'm running into a problem with my ASP.Net application. I've just created a
new aspx page which uses some new components of mine that inherit from
ServicedComponent and are designed to run under COM+.
This page works fine, unless I get fancy and hit my browser's refresh button
quickly, as a test. Then, what I see happen is the transactions pile up and
my ASP.Net "current requests" do the same. This happens even with two...
| |
by: bowman.joseph |
last post by:
Hi,
I'm new to python. I've been handed the job of modifying a script we
have here at work that pulls content from a zope site, to create static
html. They wanted a check to make sure the database is up, while
pulling, to avoid errors.
I got it pretty much working how I want without any problems. It's
actually an error check I'm having a problem with.
|
by: SkyRanger |
last post by:
I create class:
FOClassName:= PyString_FromString(ClasName);
FClass:= PyClass_New(nil, FDict, FOClassName);
PyDict_SetItemString(FDict, ClasName, FClass);
Py_DECREF(FOClassName);
Py_DECREF(FDict);
Py_DECREF(FClass);
Add methods for it:
|
by: Dr. Locke Z2A |
last post by:
So I'm writing a bot in python that will be able to do all kinds of
weird shit. One of those weird shit is the ability to translate text
from one language to another, which I figured I'd use google translate
to do. Here is the section for translation that I'm having trouble
with:
elif(line=="translate"): #if user inputs
translate
text=""
for i in range(abuindex+2, len(line)): #concantenate all
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |