可以使用Python的requests模块来发送HTTP请求并获取TLS cipher。

首先,需要安装requests模块:

pip install requests

然后,可以使用以下代码来发送HTTP请求并获取TLS cipher:

import requests

url = 'https://example.com'
response = requests.get(url)

cipher = response.connection.selected_alpn_protocol
print(cipher)

在这个例子中,我们发送了一个GET请求到https://example.com,然后从响应的连接中获取了TLS cipher。

注意:以上代码适用于Python 3.x版本。如果使用Python 2.x版本,需要将print语句改为print函数。

python http请求获取TLS cipher

原文地址: https://www.cveoy.top/t/topic/g2eO 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录