{"id":398,"date":"2012-05-21T17:11:56","date_gmt":"2012-05-22T00:11:56","guid":{"rendered":"http:\/\/www.hongyu.org\/wordpress\/?p=398"},"modified":"2012-05-21T17:11:56","modified_gmt":"2012-05-22T00:11:56","slug":"trick-for-using-squid-proxy-to-access-web-page-with-character-in-url","status":"publish","type":"post","link":"https:\/\/www.hongyu.org\/wordpress\/?p=398","title":{"rendered":"Trick for using Squid Proxy to access web page with character &#038; in URL"},"content":{"rendered":"<p>The &#038; character in URL will break the curl command in *nix shell due to its default behavior for background process. This trick solved my problem<\/p>\n<p>[sourcecode]<br \/>\nurl=&#8217;http:\/\/example.com?param1=value1&amp;param2=value2&#8242;<br \/>\ncurl &#8211;proxy squid-proxy-server-name:port-number $url<br \/>\n[\/sourcecode]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The &#038; character in URL will break the curl command in *nix shell due to its default behavior for background process. This trick solved my problem [sourcecode] url=&#8217;http:\/\/example.com?param1=value1&amp;param2=value2&#8242; curl &#8211;proxy squid-proxy-server-name:port-number $url [\/sourcecode]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/398"}],"collection":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=398"}],"version-history":[{"count":2,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/398\/revisions"}],"predecessor-version":[{"id":400,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/398\/revisions\/400"}],"wp:attachment":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}