Skip to content
Myr

faq.rst

This file

Path

docs/community/faq.rst

83 lines · 2.1 KiB

Last changed by

Not known.

History of this file

Take it

1.. _faq:23Frequently Asked Questions4==========================56This part of the documentation answers common questions about Requests.78Encoded Data?9-------------1011Requests automatically decompresses gzip-encoded responses, and does12its best to decode response content to unicode when possible.1314You can get direct access to the raw response (and even the socket),15if needed as well.161718Custom User-Agents?19-------------------2021Requests allows you to easily override User-Agent strings, along with22any other HTTP Header.232425Why not Httplib2?26-----------------2728Chris Adams gave an excellent summary on29`Hacker News <http://news.ycombinator.com/item?id=2884406>`_:3031    httplib2 is part of why you should use requests: it's far more respectable32    as a client but not as well documented and it still takes way too much code33    for basic operations. I appreciate what httplib2 is trying to do, that34    there's a ton of hard low-level annoyances in building a modern HTTP35    client, but really, just use requests instead. Kenneth Reitz is very36    motivated and he gets the degree to which simple things should be simple37    whereas httplib2 feels more like an academic exercise than something38    people should use to build production systems[1].3940    Disclosure: I'm listed in the requests AUTHORS file but can claim credit41    for, oh, about 0.0001% of the awesomeness.4243    1. http://code.google.com/p/httplib2/issues/detail?id=96 is a good example:44    an annoying bug which affect many people, there was a fix available for45    months, which worked great when I applied it in a fork and pounded a couple46    TB of data through it, but it took over a year to make it into trunk and47    even longer to make it onto PyPI where any other project which required "48    httplib2" would get the working version.495051Python 3 Support?52-----------------5354Yes! Here's a list of Python platforms that are officially55supported:5657* cPython 2.658* cPython 2.759* cPython 3.160* cPython 3.261* PyPy-c 1.462* PyPy-c 1.563* PyPy-c 1.664* PyPy-c 1.7656667Keep-alive Support?68-------------------6970Yep!717273Proxy Support?74--------------7576You bet!777879SSL Verification?80-----------------8182Absolutely.83