demo_requests_head_verify.py:
import requests url = 'https://www.begtut.com/python/demopage.php' #make the request with the path to a TLS certificate: x = requests.head(url, verify='folder/tlscertificate') print(x.status_code)
➜ begtut>python demo_requests_head_verify.py
200