Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (36 sloc) 1.169 kb
64416fe Bryan Bishop initial commit
authored
1 careful-requests
2 ~~~~~~~~~~~~~~~
3
e708179 Bryan Bishop more README tweaking
authored
4 This module provides an HTTP adapter and session for use with `Requests`_ when
5 communicating with servers that are hyper-sensitive to standard HTTP headers.
6 It may be sad, but not all HTTP servers are HTTP-compliant and some are even
7 suspicious of normal headers. Use careful-requests if you still want to use the
8 excellent Requests module.
9
10 .. _`Requests`: http://python-requests.org/
64416fe Bryan Bishop initial commit
authored
11
4cfd473 Bryan Bishop even better README formatting
authored
12 Example usage
13 ----------
64416fe Bryan Bishop initial commit
authored
14
ed33363 Bryan Bishop better README
authored
15 here you go
16
4cfd473 Bryan Bishop even better README formatting
authored
17 .. code-block:: python
18
64416fe Bryan Bishop initial commit
authored
19 from careful_requests import Careful
20
21 s = Careful()
22
c69b03e Bryan Bishop support both requests==0.14.2 and requests==1.0.4
authored
23 >>> s.get("http://httpbin.org/get")
64416fe Bryan Bishop initial commit
authored
24 <Response [200]>
ed33363 Bryan Bishop better README
authored
25
c69b03e Bryan Bishop support both requests==0.14.2 and requests==1.0.4
authored
26 "Accept-Encoding" will not be sent.
27
4cfd473 Bryan Bishop even better README formatting
authored
28 Install
29 ----------
30
31 .. code-block:: bash
ed33363 Bryan Bishop better README
authored
32
21d4283 Bryan Bishop add rule for make install
authored
33 sudo pip install careful-requests
34
35 .. code-block:: bash
36
ed33363 Bryan Bishop better README
authored
37 sudo python setup.py install
38
4cfd473 Bryan Bishop even better README formatting
authored
39 Testing
40 ----------
41
42 .. code-block:: bash
ed33363 Bryan Bishop better README
authored
43
44 make test
45
c69b03e Bryan Bishop support both requests==0.14.2 and requests==1.0.4
authored
46 Changelog
47 ----------
48
31f9a87 Bryan Bishop allow older versions of requests in setup.py
authored
49 * 0.1.5: fix dependencies to allow requests>=0.14.2 to stop installing the latest version.
50
51 * 0.1.4: override _set_proxy_headers to not send "Accept" headers to the proxy.
e479c60 Bryan Bishop update changelog with _set_proxy_headers news
authored
52
fa1f9f4 Bryan Bishop README tweaking
authored
53 * 0.1.3: support both requests==1.0.4 and requests==0.14.2, which is useful for proxy support.
c69b03e Bryan Bishop support both requests==0.14.2 and requests==1.0.4
authored
54
55 * 0.1.2: HTTPS
56
4cfd473 Bryan Bishop even better README formatting
authored
57 License
58 ----------
ed33363 Bryan Bishop better README
authored
59
60 BSD
Something went wrong with that request. Please try again.