473,545 Members | 529 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"unknown protocol" error in httplib using HTTPS

did you solve this problem? It seems to be still present here with
py2.3.5.

Robert

--
From: Manish Jethani <ma******@gmx.n et>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b)
Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.lang.pytho n
Subject: "unknown protocol" error in httplib using HTTPS
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 48
Message-ID: <fo************ *@news.oracle.c om>
Date: Sun, 21 Dec 2003 18:44:53 +0530
NNTP-Posting-Host: 152.69.162.185
X-Trace: news.oracle.com 1072013963 152.69.162.185 (Sun, 21 Dec 2003
05:39:23 PST)
NNTP-Posting-Date: Sun, 21 Dec 2003 05:39:23 PST
I'm using Python 2.3.3 to do HTTPS using the httplib module.
Here's the code:

from httplib import HTTPSConnection
con = HTTPSConnection ('www-proxy', 80)
con.set_debugle vel(1)
con.request('GE T',
'https://nexus.passport. com:443/rdr/pprdr.asp')
res = con.getresponse ()
print res.status, res.reason
print res.read()

Here, "www-proxy" is the HTTPS proxy server that I have to go
through (I can't connect directly). I'm trying to GET
"https://nexus.passport. com:443/rdr/pprdr.asp" via the proxy,
but I'm getting a "unknown protocol" error in return:

File "test.py", line 9, in ?
con.request('GE T',
'https://nexus.passport. com:443/rdr/pprdr.asp')
File "c:\python23\li b\httplib.py", line 718, in request
self._send_requ est(method, url, body, headers)
File "c:\python23\li b\httplib.py", line 739, in _send_request
self.endheaders ()
File "c:\python23\li b\httplib.py", line 712, in endheaders
self._send_outp ut()
File "c:\python23\li b\httplib.py", line 597, in _send_output
self.send(msg)
File "c:\python23\li b\httplib.py", line 564, in send
self.connect()
File "c:\python23\li b\httplib.py", line 985, in connect
ssl = socket.ssl(sock , self.key_file, self.cert_file)
File "c:\python23\li b\socket.py", line 73, in ssl
return _realssl(sock, keyfile, certfile) socket.sslerror :
(1, 'error:140770FC :SSL routines:SSL23_ GET_SERVER_HELL O:unknown
protocol')

What's the problem here? I just want to use SSL over my HTTPS
proxy using httplib.

Any help.

Thanks!

Manish

--
http://mannu.livejournal.com/
Jul 18 '05 #1
0 2914

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3361
by: Marcus | last post by:
I'm running into a situation that has me adding a value of "Unknown" to a reference table. I am being pulled between two trains of thought, and was curious to get other's input on in. I give an example below. 1-) Adding "Unknown" to a reference table is bad. Doing so effectively changes the Nullability option of every FK that references...
2
346
by: jon morgan | last post by:
Hi, Just how do you track down the location of an exception when all you get is a message saying "NullReferenceException occured in Unknown Module" ? It seems like the proverbial needle in a haystack when the debugger doesn't show you the line in your program that triggered the external error. Thanks for any help
2
1961
by: John Baker | last post by:
Hi: I have two systems, one a W98 and the other XP Home. I have Access 2000 installed on both, and have run into a difference in the way the two behave. I have a table on which I wish to reset an "auto number" field so the counter goes back to zero. The procedure I have used is to copy the contents of the table to a temp table, empty the...
0
1549
by: multisync | last post by:
I'm getting the following error: Unknown error (0x80005000) It gives this error on the line "results = searcher.FindAll()" -----code------ Dim rootentry As New System.DirectoryServices.DirectoryEntry"LDAP://mydomain.com/", "user1", "pss1", AuthenticationTypes.Secure) Dim searcher As New...
9
10700
by: Klaus Johannes Rusch | last post by:
IE7 returns "unknown" instead of "undefined" when querying the type of an unknown property of an object, for example document.write(typeof window.missingproperty); Has "unknown" been defined as a valid return value for the typeof operator in a later version of ECMAScript or is this a JScript "feature"? -- Klaus Johannes Rusch
2
4814
by: oopaevah | last post by:
I am using the Microsoft.XMLHTTP object to make server requests ie; ajax. This is working 99% of the time but occasionally it will freeze at the server for 5 minutes and then raise a javascript exception "Unknown name". After the exception I can run the same request ok, and keep doing so until the next time it freezes for 5 minutes. What...
7
37998
by: John | last post by:
Hi Everyone, I'm having this extremely annoying problem with Internet Explorer 6, giving me an error message saying "unknown runtime error" whenever I try to alter the contents of a <divelement using innerHTML. Now, I've researched this problem on the web, and found many references to it, but none of them quite addressed my specific...
4
5468
by: keychain | last post by:
I'm experience the infamous "SSL: Fatal Protocol Error" bug with Apache 2.x According the fopen() documentation: "If you are using fsockopen() to create an ssl:// socket, you are responsible for detecting and suppressing the warning yourself." I have been unable to determine how to go about suppressing these warnings. Any help would be...
0
4161
by: Peter Nofelt | last post by:
Hi all, ISSUE: ==================== In SQL 2005 (sp2) I get the following error when preforming a bulk insert with an associated xml format file: "Could not bulk insert. Unknown version of format file" Question:
0
7465
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7398
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...
0
7656
Oralloy
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. ...
0
7805
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7416
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...
0
7752
tracyyun
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...
0
3449
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...
1
1878
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
1
1013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.