using HTTPS in python 2.0

ANNALISA BOSSI bossi at velios.unive.it
Wed Oct 25 07:17:23 EDT 2000


hi,

I'm trying to use the urllib to retrive a file from a secure
site. I'm using the urllib library in python 2.0, which
should be SSL complaint, but when I actually try to connect to
any site I get the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
    File "/opt/python2.0/lib/python2.0/urllib.py", line 166, in open
        return getattr(self, name)(url)
	  File "/opt/python2.0/lib/python2.0/urllib.py", line 351, in open_https
	      h.putrequest('GET', selector)
	        File "/opt/python2.0/lib/python2.0/httplib.py", line 425, in putrequest
		    self.send(str)
		      File "/opt/python2.0/lib/python2.0/httplib.py", line 367, in send
		          self.connect()
			    File "/opt/python2.0/lib/python2.0/httplib.py", line 616, in connect
			        ssl = socket.ssl(sock, self.key_file, self.cert_file)
				socket.sslerror: SSL_connect error

				I have no clue about what's going on?

				Please help...

				Annalisa
				



More information about the Python-list mailing list