CURL-取消选中复选框输入


CURL - uncheck a checkbox input

我试图在表单上发出CURL请求,但遇到了问题。

这是一个复选框输入代码:

<input type="checkbox" name="encodeURL" id="encodeURL"><label for="encodeURL" class="tooltip" onmouseover="tooltip('Encrypts the URL of the page you are viewing so that it does not contain the target site in plaintext.')" onmouseout="exit();">

如何取消选中此复选框?我试过了:

$post = 'encodeURL=false';

但它不起作用。

哪里有问题?

未选中的复选框不会被浏览器发送,即它们的字段名不会被发送(还有值,因为字段名丢失),因为它们不"成功"。未选择的单选按钮也是如此。

选中的复选框使用字段名和相关值发送——如果HTML中没有值,则发送值"on"。

是否<输入类型=";复选框"/>仅当';检查了吗?