Skip to content
Myr

Merge pull request #752 from anentropic/patch-1

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

file posting example looked wrong

authored by Kenneth Reitz · committed by Kenneth Reitz · parents b474185, fdec88d · Browse files · 1 file+2 added−2 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−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/user/quickstart.rst+2 added-2 removed
187 unmodified lines
188189Requests makes it simple to upload Multipart-encoded files::190191 >>> url = 'http://httpbin.org/post'192 >>> files = {'report.xls': open('report.xls', 'rb')}192 >>> files = {'file': open('report.xls', 'rb')}193194 >>> r = requests.post(url, files=files)195 >>> r.text196 {197 // ...snip... //198 "files": {199 "report.xls": "<censored...binary...data>"199 "file": "<censored...binary...data>"200 },201 // ...snip... //202 }203
249 unmodified lines