Skip to content
Myr

Fix CURL_CA_BUNDLE override example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Promote REQUESTS_CA_BUNDLE as it is looked at first

authored by Jaap Roes · committed by GitHub · parent 177dd90 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/user/advanced.rst+3 added-3 removed
654 unmodified lines
655656 from requests.utils import DEFAULT_CA_BUNDLE_PATH657 print(DEFAULT_CA_BUNDLE_PATH)658659You override this default certificate bundle by setting the standard660``curl_ca_bundle`` environment variable to another file path::659You override this default certificate bundle by setting the ``REQUESTS_CA_BUNDLE``660(or ``CURL_CA_BUNDLE``) environment variable to another file path::661662 $ export curl_ca_bundle="/usr/local/myproxy_info/cacert.pem"662 $ export REQUESTS_CA_BUNDLE="/usr/local/myproxy_info/cacert.pem"663 $ export https_proxy="http://10.10.1.10:1080"664665 $ python666 >>> import requests
433 unmodified lines