473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

"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.net>
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.python
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.com>
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_debuglevel(1)
con.request('GET',
'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('GET',
'https://nexus.passport.com:443/rdr/pprdr.asp')
File "c:\python23\lib\httplib.py", line 718, in request
self._send_request(method, url, body, headers)
File "c:\python23\lib\httplib.py", line 739, in _send_request
self.endheaders()
File "c:\python23\lib\httplib.py", line 712, in endheaders
self._send_output()
File "c:\python23\lib\httplib.py", line 597, in _send_output
self.send(msg)
File "c:\python23\lib\httplib.py", line 564, in send
self.connect()
File "c:\python23\lib\httplib.py", line 985, in connect
ssl = socket.ssl(sock, self.key_file, self.cert_file)
File "c:\python23\lib\socket.py", line 73, in ssl
return _realssl(sock, keyfile, certfile) socket.sslerror:
(1, 'error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO: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 2899

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

Similar topics

3
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...
2
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...
2
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...
0
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...
9
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...
2
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...
7
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...
4
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...

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.