Skip to content

Teste Python request com TLS 1.2

Leonardo edited this page Aug 11, 2017 · 1 revision

Post: https://pyfound.blogspot.com.br/2017/01/time-to-upgrade-your-python-tls-v12.html

Python 3

python -c "import json, urllib2; print json.load(urllib2.urlopen('https://www.howsmyssl.com/a/check'))['tls_version']"

Python 3 + requests

python3 -m pip install --upgrade requests
python3 -c "import requests; print(requests.get('https://www.howsmyssl.com/a/check', verify=False).json()['tls_version'])"