Skip to content
Myr

quickstart.rst

This file

Path

docs/user/quickstart.rst

84 lines · 1.4 KiB

Last changed by

features philosophyKenneth Reitzbefore adoptiona7d072a

History of this file

Take it

docs updateKenneth Reitzbefore adoptiond18ea48

lines 1–3why, one step back
1Feature Overview
2================3

features philosophyKenneth Reitzbefore adoptiona7d072a

lines 4–6why, one step back
4Requests is designed to solve a 90% use case — making simple requests. While most
5HTTP 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 back
7

features philosophyKenneth Reitzbefore adoptiona7d072a

line 8why, one step back
8

can/cantKenneth Reitzbefore adoption054891a

lines 9–18why, one step back
9.. _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 back
19- Handle CookieJars (with a single parameter)
20- Add HTTP Authentication (with a single parameter)

can/cantKenneth Reitzbefore adoption054891a

line 21why, one step back
21- Handle redirects (with history)

features philosophyKenneth Reitzbefore adoptiona7d072a

lines 22–23why, one step back
22- Automatically decompress GZip'd responses
23- Support Unicode URLs

can/cantKenneth Reitzbefore adoption054891a

lines 24–34why, one step back
24- Gracefully timeout
25- Interface with Eventlet & Gevent262728Requests Can't:29---------------3031- Handle Caching32- Handle Keep-Alives3334

docs updateKenneth Reitzbefore adoptiond18ea48

lines 35–84why, one step back
35Quickstart
36==========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---------