quickstart.rst
This file
Path
docs/user/quickstart.rst
84 lines · 1.4 KiB
Last changed by
features philosophyKenneth Reitzbefore adoptiona7d072a
History of this fileTake it
1Feature Overview2================34Requests is designed to solve a 90% use case — making simple requests. While most5HTTP libraries are extremely extensible, they often attempt to support the entire HTTP Spec.6This often leads to extremely messy and cumbersome APIs, as is the case with urllib2. Requests abandons support for edge-cases, and focuses on the essentials.789.. _features:1011Requests Can:12-------------1314- Make **GET**, **POST**, **PUT**, **DELETE**, and **HEAD** requests.15- Handle HTTP and HTTPS Requests16- Add Request headers (with a simple dictionary)17- URLEncode your Form Data (with a simple dictionary)18- Add Multi-part File Uploads (with a simple dictionary)19- Handle CookieJars (with a single parameter)20- Add HTTP Authentication (with a single parameter)21- Handle redirects (with history)22- Automatically decompress GZip'd responses23- Support Unicode URLs24- Gracefully timeout25- Interface with Eventlet & Gevent262728Requests Can't:29---------------3031- Handle Caching32- Handle Keep-Alives333435Quickstart36==========373839GET Request40-----------414243Adding Parameters44-----------------45464748Adding Headers49--------------50515253HTTP Basic Auth54---------------555657Tracking Redirects58------------------5960616263HTTP POST (Form Data)64---------------------656667HTTP POST (Binary Data)68-----------------------697071HTTP POST (Multipart Files)72---------------------------737475HTTP PUT76--------777879HTTP DELETE80-----------818283HTTP HEAD84---------