Pages

Friday, 13 November 2015

proxy.py-一个基于python的轻量级的http代理服务器程序

Lightweight HTTP Proxy Server in Python.

Features

  • Distributed as a single file module
  • No dependency other than the Python standard library
  • Support for http, https, websockets request proxy

Install

To install proxy.py, simply:
$ pip3 install proxy.py
This will add proxy.py inside your python bin folder.

Usage

$ proxy.py -h
usage: proxy.py [-h] [--hostname HOSTNAME] [--port PORT]
                [--log-level LOG_LEVEL]

proxy.py v0.1

optional arguments:
  -h, --help            show this help message and exit
  --hostname HOSTNAME   Default: 127.0.0.1
  --port PORT           Default: 8899
  --log-level LOG_LEVEL
                        DEBUG, INFO, WARNING, ERROR, CRITICAL

Having difficulty using proxy.py? Report at:
https://github.com/abhinavsingh/proxy.py/issues/new
from https://github.com/abhinavsingh/proxy.py
----------
我的安装方法:pip3 install proxy.py
安装成功且启动成功。可以把它用作qtunnel(http://briteming.blogspot.jp/2015/10/goqtunnel.html)
的backend
或者gotunnel(http://briteming.blogspot.com/2015/09/gotunnel.html)
的backend
或者stunnel的backend.
用作backend时,要把--hostname的值设为127.0.0.1 ,以策安全,千万不要设为0.0.0.0