Skip to content
Myr

Merge pull request #1107 from Lukasa/master

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

Correct broken cookies example

authored by Kenneth Reitz · committed by Kenneth Reitz · parents f8d729a, d3e6597 · 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/quickstart.rst+3 added-3 removed
318 unmodified lines
319-------320321If a response contains some Cookies, you can get quick access to them::322323 >>> url = 'http://httpbin.org/cookies/set/requests-is/awesome'323 >>> url = 'http://example.com/some/cookie/setting/url'324 >>> r = requests.get(url)325326 >>> r.cookies['requests-is']327 'awesome'326 >>> r.cookies['example_cookie_name']327 'example_cookie_value'328329To send your own cookies to the server, you can use the ``cookies``330parameter::331
85 unmodified lines