Non-caching HTTP proxy in python.
python server.py
会显示:
Listening @ 127.0.0.1:8080
Features
- ThreadingHTTPServer
- Support socks 5 forward
- Persistent connection
- Supported HTTP commands
- GET
- POST
- HEAD
- PUT
- DELETE
- CONNECT
- Support authentication forward
- HTTPS
- Act as "tunnel", blindly exchange the bytes between client and server.
- keep-alive: 30
Requirements
- Python 3.6
用法:
登陆linux vps.
git clone https://github.com/chengyi-wu/http2socks http2socks-by-chengyi-wu
cd http2socks-by-chengyi-wu
python3 server.py &
如果你想修改它监听的端口,那么去修改server.py文件的第80行,把8080改为其他端口号。
你可以用systemd把python3 server.py运行为service.
这个http代理服务器程序可以用作各式tunnel程序的后端程序。
-------------------- https://github.com/dworld/http2socks