Message10963
So this still fails:
from __future__ import print_function
import socket
import ssl
context = ssl.create_default_context()
my_socket = context.wrap_socket(socket.socket(socket.AF_INET), server_hostname="www.mnot.net")
my_socket.connect(("www.mnot.net", 443))
my_socket.send(b"GET /blog/2014/05/09/if_you_can_read_this_youre_sniing HTTP/1.1\r\n")
my_socket.send(b"Host: www.mnot.net\r\n\r\n")
data = my_socket.recv(1000000)
print(data)
fails on Jython trunk with
_socket.SSLError: [Errno 1] certificate verify failed (javax.net.ssl.SSLHandshakeException: General SSLEngine problem)
but works on CPython 2.7.10 (and 3.5), getting the Connection: Upgrade response |
|
Date |
User |
Action |
Args |
2016-10-05 16:43:50 | zyasoft | set | messageid: <1475685830.91.0.964150052511.issue2446@psf.upfronthosting.co.za> |
2016-10-05 16:43:50 | zyasoft | set | recipients:
+ zyasoft, amak, darjus |
2016-10-05 16:43:50 | zyasoft | link | issue2446 messages |
2016-10-05 16:43:50 | zyasoft | create | |
|