Created
July 16, 2020 07:47
-
-
Save mebaysan/0773724c7deca86a16d9a5ab700918ea to your computer and use it in GitHub Desktop.
Python3 ile TLS versiyonu öğrenmek
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python3 - requests package | |
import requests | |
print(requests.get('https://www.howsmyssl.com/a/check', verify=False).json()['tls_version']) | |
# Python3 - urllib package | |
import json | |
import urllib.request | |
print(json.loads(urllib.request.urlopen('https://www.howsmyssl.com/a/check').read().decode('UTF-8'))['tls_version']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment