Skip to content
Myr

improve further advanced.rst

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 f4445b3 · Browse files · 1 file+2 added−6 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+2 added−6 removed

  • other:+2 added−6 removed

1 file+2 added−6 removed

modified:docs/user/advanced.rst+2 added-6 removed
529 unmodified lines
530 >>> requests.get('http://example.org')531532To use HTTP Basic Auth with your proxy, use the `http://user:password@host/` syntax::533534 proxies = {535 'http': 'http://user:pass@10.10.1.10:3128/',536 }534 proxies = {'http': 'http://user:pass@10.10.1.10:3128/'}535536To give a proxy for a specific scheme and host, use the537`scheme://hostname` form for the key. This will match for538any request to the given scheme and exact hostname.539540::541544 proxies = {545 'http://10.20.1.128': 'http://10.10.1.10:5323',546 }542 proxies = {'http://10.20.1.128': 'http://10.10.1.10:5323'}543544Note that proxy URLs must include the scheme.545546.. _compliance:
367 unmodified lines