Skip to content

Instantly share code, notes, and snippets.

@mebaysan
Created July 16, 2020 07:47
Show Gist options
  • Save mebaysan/0773724c7deca86a16d9a5ab700918ea to your computer and use it in GitHub Desktop.
Save mebaysan/0773724c7deca86a16d9a5ab700918ea to your computer and use it in GitHub Desktop.
Python3 ile TLS versiyonu öğrenmek
# 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