MrSeaWave/blogs

终端如何挂代理 - Sea's Blog

Opened this issue · 1 comments

设定代理成功:

$ curl google.com

<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>

没有设定代理:

$ curl google.com

curl: (7) Failed to connect to google.com port 80: Operation timed out