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
docs updateKenneth Reitzbefore adoptiond18ea48
lines 1–3why, one step back1Feature Overview2================3features philosophyKenneth Reitzbefore adoptiona7d072a
lines 4–6why, one step back4Requests 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.docs updateKenneth Reitzbefore adoptiond18ea48
line 7why, one step back7features philosophyKenneth Reitzbefore adoptiona7d072a
line 8why, one step back8can/cantKenneth Reitzbefore adoption054891a
lines 9–18why, one step back9.. _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)features philosophyKenneth Reitzbefore adoptiona7d072a
lines 19–20why, one step back19- Handle CookieJars (with a single parameter)20- Add HTTP Authentication (with a single parameter)can/cantKenneth Reitzbefore adoption054891a
line 21why, one step back21- Handle redirects (with history)features philosophyKenneth Reitzbefore adoptiona7d072a
lines 22–23why, one step back22- Automatically decompress GZip'd responses23- Support Unicode URLscan/cantKenneth Reitzbefore adoption054891a
lines 24–34why, one step back24- Gracefully timeout25- Interface with Eventlet & Gevent262728Requests Can't:29---------------3031- Handle Caching32- Handle Keep-Alives3334docs updateKenneth Reitzbefore adoptiond18ea48
lines 35–84why, one step back35Quickstart36==========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---------