polipo convert socket to http proxy
17 Feb 2016$ brew install polipo
$ ln -sfv /usr/local/opt/polipo/*.plist ~/Library/LaunchAgents
$ vim /usr/local/opt/polipo/homebrew.mxcl.polipo.plist
...
<string>/usr/local/opt/polipo/bin/polipo</string>
<string>socksParentProxy=localhost:1080</string>
...
增加
<string>socksParentProxy=localhost:1080</string>
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.polipo.plist
Test
$ http_proxy=localhost:8123 https_proxy=localhost:8123 curl google.com