- SPDY support would be awesome. No C extensions.
Downstream Repackaging
---------------------
+----------------------
If you are repackaging Requests, please note that you must also redistribute the ``cacerts.pem`` file in order to get correct SSL functionality.
You can see that the URL has been correctly encoded by printing the URL::
>>> print r.url
- u'http://httpbin.org/get?key2=value2&key1=value1'
+ http://httpbin.org/get?key2=value2&key1=value1
Response Content
>>> import requests
>>> r = requests.get('https://github.com/timeline.json')
>>> r.text
- '[{"repository":{"open_issues":0,"url":"https://github.com/...
+ u'[{"repository":{"open_issues":0,"url":"https://github.com/...
Requests will automatically decode content from the server. Most unicode
charsets are seamlessly decoded.
>>> r.headers.get('content-type')
'application/json; charset=utf-8'
-If a header doesn't exist in the Response, its value defaults to ``None``::
-
- >>> r.headers['X-Random']
- None
-
Cookies
-------