Não é possível fazer o login usando o curl

0

Estou tentando usar o curl para fazer login em uma página que tenha o seguinte formulário de login.

<form method=post action="/scripts/wa.exe" >
<input type="hidden" name="LOGIN1" value="">
<table align="center">
<tr>
<td nowrap><p><b><LABEL FOR="Email Address">Email Address:</LABEL></b></p></td>
<td><p><input name="Y" size="30" id="Email Address"
></p></td>
</tr>
<tr>
<td nowrap><p><b><LABEL FOR="Password">Password:</LABEL></b></p></td>
<td><p><input name="p" type="password" size="30" id="Password"></p></td>
</tr>
</table>
<p align="center">
<input type="submit" name="e" value="Log In">
<input type="submit" name="c" value="Change Password">
</p>
<input type="hidden" name="X" value="">
</form>

Estou usando curl -d "LOGON&Y=myusername&p=mypassword" http://mydomain.com/scripts/wa.exe , mas o curl retorna o formulário.

    
por rjss 29.08.2016 / 22:58

0 respostas

Tags