Python 3.7.2 使用SSL库作为HTTPS客户端访问服务器例子
import socket,ssl,sys
HOST, PORT = '14.215.177.38', 443
REQUESTSTR="GET / HTTP/1.1\r\nHost: www.baidu.com\r\nConnection: close\r\n\r\n"
print ("Creating socket..."),
sock = socket.socket(socket.AF_I...
原创
2019-04-13 19:02:14 ·
746 阅读 ·
0 评论