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
相關文章
相關標籤/搜索