A bug of httplib?
gcn
gaochongnan at gmail.com
Wed Apr 12 03:51:35 EDT 2006
Hello,
The HTTPSConnection class in httplib overload the connect method of
HTTPConnection, but it can only deals with IPv4:
def connect(self):
"Connect to a host on a given (SSL) port."
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((self.host, self.port))
ssl = socket.ssl(self.sock, self.key_file, self.cert_file)
self.sock = FakeSocket(self.sock, ssl)
Is it a bug or I should use other method?
Thanks.
More information about the Python-list
mailing list