Skip to content
Myr

improvements

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

  • other:+1 added−23 removed

1 file+1 added−23 removed

modified:docs/user/quickstart.rst+1 added-23 removed
249 unmodified lines
250 },251 ...252 }253254Value of each payload element can be a scalar or an iterable::255256 >>> payload = (('key1', ('value1', 1, (1, 2))), {'key2', ('value2', 2)})257 >>> r = requests.post('http://httpbin.org/post', data=payload)258 >>> print(r.text)259 {260 ...261 "form": {262 "key1": [263 "value1",264 "1",265 "1",266 "2"267 ],268 "key2": [269 "value2",270 "2"271 ]272 },273 ...274 }275276There are many times that you want to send data that is not form-encoded. If254There are times that you may want to send data that is not form-encoded. If255you pass in a ``string`` instead of a ``dict``, that data will be posted directly.256257For example, the GitHub API v3 accepts JSON-Encoded POST/PATCH data::258
287 unmodified lines