﻿{"id":2064,"date":"2020-02-14T10:29:53","date_gmt":"2020-02-14T02:29:53","guid":{"rendered":"http:\/\/nick.txtcc.com\/?p=2064"},"modified":"2020-02-14T10:32:01","modified_gmt":"2020-02-14T02:32:01","slug":"mac-%e7%8e%af%e5%a2%83%e5%b0%86-socks-%e4%bb%a3%e7%90%86%e8%bd%ac-http-%e4%bb%a3%e7%90%86","status":"publish","type":"post","link":"http:\/\/nick.txtcc.com\/index.php\/mac-os\/2064","title":{"rendered":"Mac \u73af\u5883\u5c06 Socks \u4ee3\u7406\u8f6c Http \u4ee3\u7406"},"content":{"rendered":"<div>\n<h2>\u5b89\u88c5 polipo<\/h2>\n<blockquote>sudo port install polipo<\/blockquote>\n<h2>\u5feb\u901f\u4f7f\u7528<\/h2>\n<blockquote>$ polipo socksParentProxy=localhost:1080<\/blockquote>\n<h2>\u914d\u7f6e\u6587\u4ef6\u65b9\u5f0f\u542f\u7528<\/h2>\n<div class=\"_2Uzcx_\">\n\n\u00a0\n<pre class=\"line-numbers language-objectivec\"><code class=\" language-objectivec\">&lt;span class=&quot;token macro property&quot;&gt;# vi ~\/.poliporc&lt;\/span&gt;\n\nsocksParentProxy &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &ldquo;&lt;span class=&quot;token number&quot;&gt;127.0&lt;\/span&gt;\n&lt;span class=&quot;token number&quot;&gt;.0&lt;\/span&gt;\n&lt;span class=&quot;token number&quot;&gt;.1&lt;\/span&gt;\n&lt;span class=&quot;token punctuation&quot;&gt;:&lt;\/span&gt;\n&lt;span class=&quot;token number&quot;&gt;1080&lt;\/span&gt;&Prime;\nsocksProxyType &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; socks5\nproxyAddress &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;::0&quot;&lt;\/span&gt;        # both IPv4 and IPv6\n&lt;span class=&quot;token macro property&quot;&gt;# or IPv4 only&lt;\/span&gt;\n&lt;span class=&quot;token macro property&quot;&gt;# proxyAddress = &quot;0.0.0.0&quot;&lt;\/span&gt;\nproxyPort &lt;span class=&quot;token operator&quot;&gt;=&lt;\/span&gt; &lt;span class=&quot;token number&quot;&gt;8123&lt;\/span&gt;\n<\/code><\/pre>\n<\/div>\n<h2>\u8fd0\u884c<\/h2>\n<blockquote>$ polipo -c ~\/.poliporc<\/blockquote>\n<h2>\u6d4b\u8bd5<\/h2>\n<blockquote>$ curl &#8211;proxy http:\/\/127.0.0.1:8123 <a href=\"https:\/\/www.google.com\" target=\"_blank\" rel=\"nofollow\">https:\/\/www.google.com<\/a><\/blockquote>\n<h2>\u914d\u7f6e\u5f00\u673a\u81ea\u542f\u52a8<\/h2>\n\u53c2\u8003\u94fe\u63a5\uff1a<a href=\"http:\/\/makaiqian.com\/setting-boot\/\" target=\"_blank\" rel=\"nofollow\">mac\u73af\u5883\u4e0b\u5f00\u673a\u81ea\u542f\u52a8Shell\u811a\u672c<\/a>\n<h2>\u53c2\u8003\u94fe\u63a5<\/h2>\n<ul>\n    <li><a href=\"https:\/\/www.codevoila.com\/post\/16\/convert-socks-proxy-to-http-proxy-using-polipo\" target=\"_blank\" rel=\"nofollow\">Convert Socks Proxy To Http Proxy: Using Polipo &#8211; CodeVoila<\/a><\/li>\n    <li><a href=\"https:\/\/stackoverflow.com\/questions\/27658665\/how-convert-socks-to-http-in-mac-osx\" target=\"_blank\" rel=\"nofollow\">proxy &#8211; How convert Socks to HTTP in Mac OSX? &#8211; Stack Overflow<\/a><\/li>\n<\/ul>\n<\/div>\n<p>hg\u4f7f\u7528\u4ee3\u7406\uff0c\u5411.hgrc\u7684\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9:<\/p>\n<pre class=\"cpp\"><code>   [hostfingerprints]\n   vim.googlecode.com=c2:8a:1e:9c:a8:00:be:02:4c:2a:53:60:2b:09:50:d8:ee:5c:bc:68        \n   [http_proxy]\n   host=127.0.0.1:8087\n   [web]\n   cacerts = \/etc\/ssl\/certs\/ca-certificates.crt<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5 polipo sudo port install polipo \u5feb\u901f\u4f7f\u7528 $ polipo socksParentProxy=localhost:1080 \u914d\u7f6e\u6587\u4ef6\u65b9\u5f0f\u542f\u7528 \u00a0 <span&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[340],"tags":[],"class_list":["post-2064","post","type-post","status-publish","format-standard","hentry","category-mac-os"],"_links":{"self":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/2064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=2064"}],"version-history":[{"count":2,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/2064\/revisions"}],"predecessor-version":[{"id":2066,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/2064\/revisions\/2066"}],"wp:attachment":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=2064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=2064"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=2064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}