What does `verify=False` do, and what should you do instead?
IntermediateConceptData formats, HTTP & REST APIs
Answer
It disables TLS certificate verification, so any man-in-the-middle can impersonate the server and read your credentials. It also spams InsecureRequestWarning. The real fix for internal or proxied endpoints is to trust the right CA: verify="/etc/ssl/certs/corp-ca.pem" or REQUESTS_CA_BUNDLE=/path/ca.pem (requests uses certifi's bundle, not the OS store, unless told otherwise; the truststore package can make it use the OS store).
More on Data formats, HTTP & REST APIs
How do you read and write JSON, and what are the common gotchas?BeginnerWhy must you use `yaml.safe_load` rather than `yaml.load`?BeginnerHow do you load a multi-document Kubernetes YAML file?IntermediateHow do you read and write CSV files properly?BeginnerHow do you make an HTTP request with `requests` the right way?BeginnerWhy use a `requests.Session`?Intermediate