Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Requests for header-sensitive servers (like Accept-Encoding)

Project Description

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")
<Response [200]>

"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.3: support both requests==1.0.4 and requests==0.14.2, which is useful for proxy support.

* 0.1.2: HTTPS

License
----------

BSD

Release History

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
careful-requests-0.1.4.tar.gz
(3.7 kB) Copy SHA256 Hash SHA256
Source Jan 10, 2013

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting