Convert SOCKS5 Proxy to HTTP Proxy on Mac

Posted on
2015-10-20
|

We usually use ShadowsocksX on Mac to build a SOCKS5 tunnel. But as a developer, I need HTTP Proxy in many places such as npm or some IDE tools. I need a tool to build a HTTP Proxy and pack data stream to SOCKS5 tunnel.

I found a solution of using a tool called polipo. We can simply install this tool by homebrew.

1

brew instasll polipo

After installed polipo, let’s make it work by a simple command.

1

polipo socksParentProxy=localhost:1080

localhost:1080 is your local SOCKS5 address. In default, HTTP proxy created by polipo is running on localhost:8123.