Default Twisted does not ship with a CONNECT-enabled HTTP(s) proxy. This code provides one.
Python
Switch branches/tags
Nothing to show
Latest commit c51a336 Feb 21, 2017 @fmoo committed on GitHub Merge pull request #11 from Oefenweb/make-fix-for-twisted-1630-condit…
…ional

Make fix for >=twisted-16.3.0 conditional
Permalink
Failed to load latest commit information.
.gitignore Initial commit Oct 9, 2012
LICENSE BSD License Oct 25, 2014
README.md More details Oct 25, 2014
client.py BSD License Oct 25, 2014
server.py Make fix for >=twisted-16.3.0 conditional Feb 21, 2017

README.md

twisted-connect-proxy

Default Twisted does not ship with a CONNECT-enabled HTTP(s) proxy. This code provides one.

This code also provides an HTTP CONNECT proxy client that implements IReactorTCP and IReactorSSL

Proxy Server

To run an HTTP CONNECT proxy server on port 8080, run:

./server.py

That was easy.

Proxy Client

The HTTP CONNECT proxy reactor can be used like this:

proxy = HTTPProxyConnector(proxy_host, proxy_port)