Contents
1 User Guide 3
1.1 Overview ................................................. 3
1.1.1 Requirements .......................................... 3
1.1.2 Installation ........................................... 3
1.1.3 License ............................................. 4
1.1.4 Contributing ........................................... 4
1.1.5 Reporting a security vulnerability ............................... 5
1.2 Quickstart ................................................ 5
1.2.1 Making a Request ........................................ 5
1.2.2 Using Responses ........................................ 8
1.2.3 Query String Parameters .................................... 9
1.2.4 Uploading Data ......................................... 9
1.2.5 Cookies ............................................. 11
1.2.6 Redirects ............................................ 11
1.2.7 Exceptions ........................................... 12
1.2.8 Environment Variables ..................................... 12
1.3 Request Options ............................................. 13
1.3.1 allow_redirects ......................................... 13
1.3.2 auth ............................................... 15
1.3.3 body ............................................... 15
1.3.4 cert ............................................... 16
1.3.5 cookies ............................................. 16
1.3.6 connect_timeout ........................................ 17
1.3.7 debug .............................................. 17
1.3.8 decode_content ......................................... 18
1.3.9 delay .............................................. 18
1.3.10 expect .............................................. 18
1.3.11 force_ip_resolve ........................................ 19
1.3.12 form_params .......................................... 19
1.3.13 headers ............................................. 20
1.3.14 http_errors ............................................ 20
1.3.15 json ............................................... 21
1.3.16 multipart ............................................ 22
1.3.17 on_headers ........................................... 22
1.3.18 on_stats ............................................. 23
1.3.19 progress ............................................. 23
1.3.20 proxy .............................................. 24
1.3.21 query .............................................. 25
i