Curl 如何卷曲这个HTML表单?

Curl 如何卷曲这个HTML表单?,curl,Curl,我正在尝试将登录过程自动化到我的dome的WLAN中。登录表单如下所示: <form method="post" action="https://10.70.70.70/user/user_login_auth.jsp"> <input align="center" type="text" name="username" placeholder="Username" id="username" maxLength="256" AUTOCOMPLETE=OFF />

我正在尝试将登录过程自动化到我的dome的WLAN中。登录表单如下所示:

<form method="post" action="https://10.70.70.70/user/user_login_auth.jsp">
    <input align="center" type="text" name="username" placeholder="Username" id="username"  maxLength="256" AUTOCOMPLETE=OFF />
    <input align="center" type="password" name="password" placeholder="Password" id="password"  maxLength="64" AUTOCOMPLETE=OFF />
    <input type="hidden" name="email" id="email" />
    <input type="hidden" name="user" id="user" />
    <input type="hidden" name="ssid" id="ssid" />
    <input type="submit" class="submit" name="ok" value="Log In" />
</form>
更新:我添加了最小的HTML表单。每次我尝试卷曲时,服务器都会返回登录页面。我假设我必须包含一些标题,并将尝试通过Chrome请求监控了解请求的外观。

尝试以下操作:

curl -k -d 'username=test&password=test' -b /tmp/c -c /tmp/c https://10.70.70.70/user/user_login_auth.jsp
curl -k -b /tmp/c -c /tmp/c https://10.70.70.70/user

嗨,我试过你的命令,但没用。但是我更新了我的问题,你能再看一看吗?感谢通过cookies saving保存会话,现在有2条cURL命令屏幕截图中的表单数据与cURL命令中的数据不匹配。@Quentin,谢谢。我修改了表格。虽然参数email、user、ssid不是必需的。
curl -k -d 'username=test&password=test' -b /tmp/c -c /tmp/c https://10.70.70.70/user/user_login_auth.jsp
curl -k -b /tmp/c -c /tmp/c https://10.70.70.70/user