Мне нужно войти в форму html с помощью curl, но я не знаю, почему я получаю 0 размер в ответе, я думаю, что мой запрос имеет неправильный формат в заголовке?
curl -H "Accept:application/xml" -H "Content-Type: multipart/form-data" -X POST --data "login=admin&password=admin http://dev.local/check.php -w '%{size_download}
<form action="check.php" method="post">
<div class="inputcaja">
<input type="text" name="login" autocomplete="off" required="" autofocus />
<label for="">Usuario</label>
</div>
<div class="inputcaja">
<input type="password" name="password" autocomplete="new-password" required="" autofocus />
<label for="">Contraseña</label>
</div>
<center>
<input type="submit" class="btn btn-primary" name="" value="Entrar">
</center>