Skip to content
Myr

Added information about HTTP proxy authentication to docs

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

authored by Danilo Bargen · committed by Danilo Bargen · parent 77a57c0 · Browse files · 2 files+14 added−2 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+14 added−2 removed

  • other:+14 added−2 removed

2 files+14 added−2 removed

modified:docs/user/advanced.rst+13 added-2 removed
43 unmodified lines
44 Sometimes you'll want to omit session-level keys from a dict parameter. To do this, you simply set that key's value to ``None`` in the method-level parameter. It will automatically be omitted.4546All values that are contained within a session are directly available to you. See the :ref:`Session API Docs <sessionapi>` to learn more.474849SSL Cert Verification50---------------------5152Requests can verify SSL certificates for HTTPS requests, just like a web browser. To check a host's SSL certificate, you can use the ``verify`` argument::
240 unmodified lines
293 >>> requests.get('http://httpbin.org/headers', config=my_config)294 2011-08-17T03:04:23.380175 GET http://httpbin.org/headers295 <Response [200]>296297298Proxies299-------300301If you need to use a proxy, you can configure individual requests with the
3 unmodified lines
305306 import requests307308 proxies = {307 "http": "10.10.1.10:3128"308 "https": "10.10.1.10:1080"309 "http": "10.10.1.10:3128",310 "https": "10.10.1.10:1080",311 }312313 requests.get("http://example.org", proxies=proxies)314
6 unmodified lines
321 $ python322 >>> import requests323 >>> requests.get("http://example.org")324325To use HTTP Basic Auth with your proxy, use the `http://user:password@host/` syntax:326327::328329 proxies = {330 "http": "http://user:pass@10.10.1.10:3128/",331 }332333334HTTP Verbs335----------336337Requests provides access to almost the full range of HTTP verbs: GET, OPTIONS,
151 unmodified lines
modified:AUTHORS.rst+1 added
100 unmodified lines
101- Justin Barber <barber.justin@gmail.com>102- Roman Haritonov <@reclosedev>103- Josh Imhoff <joshimhoff13@gmail.com>104- Arup Malakar <amalakar@gmail.com>105- Danilo Bargen (gwrtheyrn)