Skip to main content

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...]

Project details


Release history Release notifications

This version
History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ProxyHTTPServer.tar.gz (3.1 kB) Copy SHA256 hash SHA256 Source None Nov 24, 2007

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page