Welcome to python-proxy-headers’s documentation!

The python-proxy-headers package provides support for handling custom proxy headers when making HTTPS requests in various Python modules.

We currently provide extensions to the following packages:

Purpose

None of these modules provide good support for parsing custom response headers from proxy servers. And some of them make it hard to send custom headers to proxy servers. So we at ProxyMesh made these extension modules to support our customers that use Python and want to use custom headers to control our proxy behavior. But these modules can work for handling custom headers with any proxy.

If you are looking for Scrapy support, please see our scrapy-proxy-headers project.

Installation

To use these extension modules, you must first do the following:

  1. Install the package:

    pip install python-proxy-headers
    
  2. Install the appropriate package based on the Python module you want to use.

This package does not have any dependencies because we don’t know which module you want to use.

You can also find more example code in our proxy-examples for python.

Contents

Indices and tables