Skip to content

Hongyu's weblog

Science, Technology, and Beyond

Month: May 2012

Posted on May 21, 2012

Trick for using Squid Proxy to access web page with character & in URL

The & 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=’http://example.com?param1=value1&param2=value2′
curl –proxy squid-proxy-server-name:port-number $url
[/sourcecode]

Archives

May 2012
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Apr   Sep »
Proudly powered by WordPress