Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
python-requests with skip_host and skip_accept_encoding
Python
tag: v0.1.3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
careful_requests
.gitignore
LICENSE
Makefile
README.rst
setup.py
test_careful_requests.py

README.rst

careful-requests

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.

Example usage

here you go

from careful_requests import Careful

s = Careful()

>>> s.get("http://httpbin.org/get")
<Response [200]>

"Accept-Encoding" will not be sent.

Install

sudo pip install careful-requests
sudo python setup.py install

Testing

make test

Changelog

  • 0.1.3: support both requests==1.0.4 and requests==0.14.2, which is useful for

proxy support.

  • 0.1.2: HTTPS

License

BSD

Something went wrong with that request. Please try again.