Linux:sockets代理转http代理:修订间差异

来自WHY42
Riguz留言 | 贡献
建立內容為「<syntaxhighlight lang="bash"> brew install polipo polipo socksParentProxy=localhost:6500 curl --proxy http://127.0.0.1:8123 https://www.google.com export https_pr…」的新頁面
 
Riguz留言 | 贡献
无编辑摘要
 
第4行: 第4行:
curl --proxy http://127.0.0.1:8123 https://www.google.com
curl --proxy http://127.0.0.1:8123 https://www.google.com
export https_proxy=localhost:8123
export https_proxy=localhost:8123
</syntaxhighlight>
直接用sockets代理:
<syntaxhighlight lang="bash">
export http_proxy=http://127.0.0.1:8123
export https_proxy=http://127.0.0.1:8123
export http_proxy=socks5://127.0.0.1:6500
export https_proxy=socks5://127.0.0.1:6500
</syntaxhighlight>
</syntaxhighlight>


[[Category:Linux/Unix]]
[[Category:Linux/Unix]]

2021年10月25日 (一) 02:22的最新版本

brew install polipo
polipo socksParentProxy=localhost:6500
curl --proxy http://127.0.0.1:8123 https://www.google.com
export https_proxy=localhost:8123

直接用sockets代理:

export http_proxy=http://127.0.0.1:8123
export https_proxy=http://127.0.0.1:8123

export http_proxy=socks5://127.0.0.1:6500
export https_proxy=socks5://127.0.0.1:6500