Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanzure/careful-requests
python-requests with skip_host and skip_accept_encoding
https://github.com/kanzure/careful-requests
Last synced: about 2 months ago
JSON representation
python-requests with skip_host and skip_accept_encoding
- Host: GitHub
- URL: https://github.com/kanzure/careful-requests
- Owner: kanzure
- License: bsd-2-clause
- Created: 2013-01-02T02:55:54.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-30T03:45:27.000Z (almost 12 years ago)
- Last Synced: 2024-10-11T20:43:02.229Z (3 months ago)
- Language: Python
- Size: 160 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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... _`Requests`: http://python-requests.org/
Example usage
----------here you go
.. code-block:: python
from careful_requests import Careful
s = Careful()
>>> s.get("http://httpbin.org/get")
"Accept-Encoding" will not be sent.
Install
----------.. code-block:: bash
sudo pip install careful-requests
.. code-block:: bash
sudo python setup.py install
Testing
----------.. code-block:: bash
make test
Changelog
----------* 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
License
----------BSD