Skip to content
Myr

readme update

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 8493d83 · Browse files · 1 file+1 added−31 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+1 added−31 removed

  • other:+1 added−31 removed

1 file+1 added−31 removed

modified:README.rst+1 added-31 removed
17 unmodified lines
18 >>> r.status_code19 20420 >>> r.headers['content-type']21 'application/json'22 >>> r.content22 >>> r.text23 ...2425See `the same code, without Requests <https://gist.github.com/973705>`_.26
19 unmodified lines
46- Automatc decoding of Unicode, gzip, and deflate responses.47- Full support for unicode URLs and domain names.484950Usage51-----5253It couldn't be simpler::5455 >>> import requests56 >>> r = requests.get('http://google.com')575859HTTPS? Basic Authentication? ::6061 >>> r = requests.get('https://httpbin.ep.io/basic-auth/user/pass')62 >>> r.status_code63 401646566Uh oh, we're not authorized! Let's add authentication. ::6768 >>> r = requests.get('https://httpbin.ep.io/basic-auth/user/pass', auth=('user', 'pass'))6970 >>> r.status_code71 2007273 >>> r.headers['content-type']74 'application/json'7576 >>> r.content77 '{"authenticated": true, "user": "user"}'787950Installation51------------5253To install requests, simply: ::
21 unmodified lines