G
gcn
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.
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.