LINUX Curl GET off parameter resolution
url the URL address for http://mywebsite.com/index.php?a=1&b=2&c=3
Web, using $_ Get is able to get all the arguments
curl -s http://mywebsite.com/index.php?a=1&b=2&c=3
However under Linux, the above example $ _get can only get to parameter a
because there are & other parameters in the URL that are not available in the Linux system & will cause the process system to run in the background
must be escaped by & to $_get get all parameters
curl -s http://mywebsite.com/index.php?a=1\&b=2\&c=3
Of course, the simplest way to bring the entire URL together in double quotes is OK
curl -S "Http://mywebsite.com/index.php?a=1&b=2&c=3"
# by the way, the method for post-pass parameters in Curl
curl -d ' name=1&pagination=2 ' demoapp.sinap.com/worker.php
# so demoapp.sinap.com worker.php script in the site, you can get $_post[' name [] and $_post[' pagination] corresponding to the value
# Add the method of curl to get site information (-S for silence --head Indicates information)
curl -s --head www.sina.com