diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2011-11-19 16:15:48 -0500 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2011-11-19 16:15:48 -0500 |
| commit | ab23536b1b084bb5dd901aa05dd638075351af47 (patch) | |
| tree | 859ec7b317d55d2eaa9e4194249f7168e329edce | |
| parent | b51640b051e7732ed3fcdbccc5f0250392f4d740 (diff) | |
| download | python-requests-0.8.2.tar.gz | |
quickstart for encodingv0.8.2
| -rw-r--r-- | docs/user/quickstart.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index cdced6b9..618887f8 100644 --- a/docs/user/quickstart.rst +++ b/docs/user/quickstart.rst @@ -42,6 +42,11 @@ We can read the content of the server's response:: Requests does its best to decode content from the server. Most unicode charsets, ``gzip``, and ``deflate`` encodings are all seamlessly decoded. +When you make a request, ``r.encoding`` is set, based on the HTTP headers. +Requests will attempt to use that encoding when you access ``r.content``. You +can manually set ``r.encoding`` to any encoding you'd like (including ``None``), +and that charset will be used. + Make a POST Request ------------------- |
