use shell curl to post whith a checkbox array

2019-08-05 18:39发布

问题:

The http code like this:

<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[]">

It will be checked some value more than one I see that, checkbox like this is for php and have to be serialized and I want to use curl on unix shell to do this,what can i do?