LittleProxy is a high performance HTTP proxy written in Java atop Trustin Lee's excellent Netty event-based networking library. It's quite stable, performs well, and is easy to integrate into your projects.
One option is to clone LittleProxy and run it from the command line. This is as simple as:
$ git clone git://github.com/adamfisk/LittleProxy.git $ cd LittleProxy $
bash run.bash （运行此命令后，输出一大堆内容，最后一行显示：
Proxy started at address: /0.0.0.0:8080 （即在8080端口，一个http代理服务器程序
$nohup bash run.bash > /dev/null &