Skip to content
Myr

updating https demo urls

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

authored by Nate Prewitt · committed by Nate Prewitt · parent edf09ad · Browse files · 2 files+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

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:docs/user/advanced.rst+3 added-3 removed
218 unmodified lines
219This list of trusted CAs can also be specified through the ``REQUESTS_CA_BUNDLE`` environment variable.220221Requests can also ignore verifying the SSL certificate if you set ``verify`` to False::222223 >>> requests.get('https://kennethreitz.com', verify=False)223 >>> requests.get('https://kennethreitz.org', verify=False)224 <Response [200]>225226By default, ``verify`` is set to True. Option ``verify`` only applies to host certs.227228You can also specify a local cert to use as client side certificate, as a single229file (containing the private key and the certificate) or as a tuple of both230file's path::231232 >>> requests.get('https://kennethreitz.com', cert=('/path/client.cert', '/path/client.key'))232 >>> requests.get('https://kennethreitz.org', cert=('/path/client.cert', '/path/client.key'))233 <Response [200]>234235or persistent::236
1 unmodified line
238 s.cert = '/path/client.cert'239240If you specify a wrong path or an invalid cert, you'll get a SSLError::241242 >>> requests.get('https://kennethreitz.com', cert='/wrong_path/client.pem')242 >>> requests.get('https://kennethreitz.org', cert='/wrong_path/client.pem')243 SSLError: [Errno 336265225] _ssl.c:347: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib244245.. warning:: The private key to your local certificate *must* be unencrypted.246 Currently, Requests does not support using encrypted keys.
743 unmodified lines
deleted:docs/.api.rst.swobinary

A binary file, deleted.