Python TLS request version
# pyhton 2
python -c "import json, urllib2;\
print json.load(urllib2.urlopen('https://www.howsmyssl.com/a/check'))['tls_version']"
# pyhton 3
python3 -c "import json, urllib.request;\
print(json.loads(urllib.request.urlopen('https://www.howsmyssl.com/a/check').read().decode('UTF-8'))['tls_version'])"
No comments:
Post a Comment