Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Arrays 使用shell curl以复选框数组进行post_Arrays_Shell_Curl_Checkbox - Fatal编程技术网

Arrays 使用shell curl以复选框数组进行post

Arrays 使用shell curl以复选框数组进行post,arrays,shell,curl,checkbox,Arrays,Shell,Curl,Checkbox,http代码如下所示: <input type="checkbox" value="1" name="checkbox[]"> <input type="checkbox" value="2" name="checkbox[]"> <input type="checkbox" value="3" name="checkbox[]"> <input type="checkbox" value="4" name="checkbox[]"> <in

http代码如下所示:

<input type="checkbox" value="1" name="checkbox[]">
<input type="checkbox" value="2" name="checkbox[]">
<input type="checkbox" value="3" name="checkbox[]">
<input type="checkbox" value="4" name="checkbox[]">
<input type="checkbox" value="5" name="checkbox[]">
<input type="checkbox" value="6" name="checkbox[]">

它将被多个值检查
我明白了,像这样的复选框是针对php的,必须序列化,我想在unix shell上使用curl来实现这一点,我能做什么?

您想从shell或php使用curl吗?使用
curl-X post--data”?复选框[]=2和复选框[]=4“
不起作用?