468,296 Members | 1,300 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,296 developers. It's quick & easy.

SSL via Proxy (URLLIB2) on Windows gives Unknown Protocol error?


With Windows XP, and Python v2.41 I am running into a problem....

The following code gives me an unknown protocol error.... And I am not
sure how
to resolve it...

I have a API written for DocuShare for a non-SSL server, and I wanted
to update it
to support the SSL/S3 login....

So here's the SSL test code, and I can't get the page to retrieve....

import urllib2
proxy_handler = urllib2.ProxyHandler({'http':

request =
request.set_proxy( "www.wb.xerox.com:8000", "https")
stream = urllib2.urlopen( request )

print '\n'.join(stream.readlines())


The error is:

urllib2.URLError: <urlopen error (1, 'error:140770FC:SSL
routines:SSL23_GET_SERVER_HELLO:unknown protocol')>

As far as I can tell the Python 2.41 MSI bundle includes the SSL code?

Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
import socket
print socket.ssl

<function ssl at 0x00BC95B0>

Anyone have any suggestions?

- Ben

Jul 19 '05 #1
0 1854

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Carl Waldbieser | last post: by
4 posts views Thread by Fuzzyman | last post: by
reply views Thread by Robert | last post: by
3 posts views Thread by itay_k | last post: by
2 posts views Thread by Andrew R | last post: by
1 post views Thread by Alessandro Fachin | last post: by
10 posts views Thread by rplobue | last post: by
6 posts views Thread by Larry Hale | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.