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!

ProxyHTTPServer -- from the creator of PyWebRun

Project Description
::


FILES LIST
----------
src/ProxyHTTPServer.py proxy based on ThreadingTCPServer and BaseHTTPServer
src/logger.py proxy based on ProxyHTTPServer
src/test.py web server for proxy testing
README.txt


DEPENDENCES
-----------
Python 2.5.1


TUTORIAL
--------
Type in your console:
python ProxyHTTPServer.py

It run a local proxy server:
Serving HTTP on 0.0.0.0 port 8000 ...

You must configure your browser to use this proxy:
HTTP: 127.0.0.1
PORT: 8000

You can use others ports:
python ProxyHTTPServer.py 8001

The first test is to browse on web.
The second is to run the test server:
python test.py 8080

You must browse on:
http://localhost:8080/


LOGGER
------
Type in your console:
python logger.py

Configure your browser to use this proxy.
Browse on http://www.python.org

The logger proxy will make a HTML file, like this:
e7e3879e-9aa2-11dc-b850-444553540000.html

See the top file with a text editor:

REQUEST GET
http://www.python.org/
[...headers...]
[None with GET]

RESPONSE 200
[...headers...]

[...HTML...]
Release History

Release History

This version
History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ProxyHTTPServer.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source Nov 24, 2007

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting