curl-and-php
Login Page
Date: Thu, 21 Apr 2005 14:19:37 -0300
I'm new here and I'm having trouble on using cURL to fill a login form. I copied the important parts of the page's code:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
</HEAD>
<BODY>
<form action='index.php' method='post' name='f'>
<input type='hidden' name='op' value='login'>
<input type='hidden' name='redir' value=''>
<input type=text name=nick>
<input type=password name=pass>
<input type=submit value="Login">
</BODY>
</HTML>
I already tried this command line to fill the form:
curl -b "Acookie.file" -e "www.domain.com" -F "op=login&redir=&nick=MyNickName&pass=MyPassword" www.domain.com/index.php
What am I doing wrong?
Thanks!
Received on 2005-04-21