This module provides an HTTP adapter and session for use with Requests when communicating with servers that are hyper-sensitive to standard HTTP headers. It may be sad, but not all HTTP servers are HTTP-compliant and some are even suspicious of normal headers. Use careful-requests if you still want to use the excellent Requests module.
here you go
from careful_requests import Careful s = Careful() >>> s.get("http://httpbin.org/get") <Response >
"Accept-Encoding" will not be sent.
sudo pip install careful-requests
sudo python setup.py install
- 0.1.5: fix dependencies to allow requests>=0.14.2 to stop installing the latest version.
- 0.1.4: override _set_proxy_headers to not send "Accept" headers to the proxy.
- 0.1.3: support both requests==1.0.4 and requests==0.14.2, which is useful for proxy support.
- 0.1.2: HTTPS