# 1 shell curl ## 1.1 params ~~~ #post传参 curl -d "page=1&paramsTwo=XXX" XXX.com ~~~ ~~~ # post 传参 +绑定host curl -G -H 'Host: XXX.com' -d "paramsOne=02&paramTwo=CT" http://111.111.111.111/XXXX/xxxx/xxxx ~~~ ~~~ # 传数组 curl -d "paramsOne=a" -d "array[0][xx]=1111&array[0][xxx]=1111" xx.xx.xx.xx.com/xx/xxx/xxxx ~~~ ~~~ # 传中文 [服务器上执行] curl -G -H 'Host: xxx.com' --data-urlencode "paramOne=a" --data-urlencode "array[0][xx]=中文" http://111.111.111/xxx/xxx/xxxx ~~~