Skip to content
Myr

compensate for lack of taste

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 7d0a94d · Browse files · 1 file+4 added−4 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+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:docs/user/advanced.rst+4 added-4 removed
191 unmodified lines
192SSL Cert Verification193---------------------194195Requests verifies SSL certificates for HTTPS requests, just like a web browser.196By default, SSL verification is enabled, and requests will throw a SSLError if196By default, SSL verification is enabled, and Requests will throw a SSLError if197it's unable to verify the certificate::198199 >>> requests.get('https://requestb.in')200 requests.exceptions.SSLError: hostname 'requestb.in' doesn't match either of '*.herokuapp.com', 'herokuapp.com'
33 unmodified lines
234 >>> requests.get('https://kennethreitz.com', cert='/wrong_path/client.pem')235 SSLError: [Errno 336265225] _ssl.c:347: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib236237.. warning:: The private key to your local certificate *must* be unencrypted.238 Currently, requests does not support using encrypted keys.238 Currently, Requests does not support using encrypted keys.239240.. _ca-certificates:241242CA Certificates
308 unmodified lines
551^^^^^552553.. versionadded:: 2.10.0554555In addition to basic HTTP proxies, requests also supports proxies using the555In addition to basic HTTP proxies, Requests also supports proxies using the556SOCKS protocol. This is an optional feature that requires that additional557third-party libraries be installed before use.558559You can get the dependencies for this feature from ``pip``:
341 unmodified lines
901902Header Ordering903---------------904905In unusual circumstances you may want to provide headers in an ordered manner. If you pass an ``OrderedDict`` to the ``headers`` keyword argument, that will provide the headers with an ordering. *However*, the ordering of the default headers used by requests will be preferred, which means that if you override default headers in the ``headers`` keyword argument, they may appear out of order compared to other headers in that keyword argument.905In unusual circumstances you may want to provide headers in an ordered manner. If you pass an ``OrderedDict`` to the ``headers`` keyword argument, that will provide the headers with an ordering. *However*, the ordering of the default headers used by Requests will be preferred, which means that if you override default headers in the ``headers`` keyword argument, they may appear out of order compared to other headers in that keyword argument.906907If this is problematic, users should consider setting the default headers on a :class:`Session <requests.Session>` object, by setting :data:`Session <requests.Session.headers>` to a custom ``OrderedDict``. That ordering will always be preferred.908909.. _timeouts:
38 unmodified lines