demo_requests_head_verify.py:
import requests url = 'https://www.w3schools.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)
C:\Users\My Name>python demo_requests_head_verify.py
200