Usage: pyproxy [OPTIONS]
Options:
--bind addrs that debugger bind to (default
127.0.0.1)
--config config file
--debug debug mode (default False)
--help show this help information
--username proxy username
--password proxy password
--port the port that debugger listen to (default
8888)
1 Use as http/https proxy
curl -x http:https://localhost:8888/ http:https://httpbin.org/get
2 with GET/POST parameters
curl http:https://localhost:8888/anypath?method=POST&url=http:https://httpbin.org/post
3 pass params with JSON (work with GET parameters as well)
curl -d '{"url": "http:https://httpbin.org/get","method": "GET", "headers": {"User-Agent":"Baidu"}}' http:https://localhost:8888/?callback=callback
1 http proxy auth
curl -x http:https://username:password@localhost:8888/ http:https://httpbin.org/get
2 http basic auth
curl http:https://username:password@localhost:8888/anypath?method=POST&url=http:https://httpbin.org/post
3 username & password in GET/POST parameters / JSON
curl http:https://localhost:8888/anypath?method=POST&url=http:https://httpbin.org/post&username=usernmae&password=password
4 host_sign / path_sign / url_sign
sign a host / path / url with current username/password:
visit http:https://username:password@localhost:8888/sign?url=http:https://httpbin.org/get to get sign
request with: http:https://localhost:8888/?url=http:https://httpbin.org/get&path_sign=abc123