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¶m2=value2′
curl –proxy squid-proxy-server-name:port-number $url
[/sourcecode]