Skip to content
Myr

example udpate

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

  • other:+6 added−8 removed

1 file+6 added−8 removed

modified:docs/index.rst+6 added-8 removed
15 unmodified lines
16It reqires an *enormous* amount of work (even method overrides) to perform the simplest of tasks.1718Things shouldn’t be this way. Not in Python.1920It's Simple21-----------2220::2125 >>> import requests26 >>> r = requests.get('https://convore.com/api', auth=('username', 'password'))27 >>> r.headers['content-encoding']28 json22 >>> r = requests.get('https://api.github.com', auth=('user', 'pass'))23 >>> r.status_code24 20025 >>> r.headers['content-type']26 'application/json'2730See `the same code, without Requests <http://gist.github.com/some-gist>`_.28See `the same code, without Requests <https://gist.github.com/973705>`_.2930Requests allow you to send **GET**, **HEAD**, **PUT**,31**POST**, and **DELETE** HTTP requests. You can add headers, form data,32multipart files, and parameters with simple Python dictionaries, and access the
54 unmodified lines