[Problem solving] The curl get method under linux cannot get the parameters

Problem statement

For example, the
url is http://mywebsite.com/index.php?a=1&b=2&c=3
to access the url address in the web format, using $_GET can get all the parameters,
but
curl http://mywebsite under linux . com/index.php?a=1&b=2&c=3
$_GET can only get the parameter a.
Because there is & in the URL, other parameters cannot be obtained. In the linux system, & will make the process system run in the background

solution

You must escape the'&' to the & to get all the parameters
curl http://mywebsite.com/index.php?a=1&b=2&c=3
or use the ``symbol to include the url link
curlhttp://mywebsite.com/index.php?a=1&b=2&c=3

Guess you like

Origin blog.csdn.net/weixin_44704985/article/details/113970412