I'm testing my login script below by trying to access my squirrelmail account. But it is failing and from the error message I get (i.e. "please log in" as opposed to "your username/password are incorrect") I don't think the POST variables are being recognised.
Please could someone point me in the right direction?
/ load the snoopy class and initialize the object /
$snoopy = new Snoopy();
/ set some values /
$login_form['login_username'] = 'username';
$login_form['secretkey'] = 'password';
$snoopy->cookies['vegetable'] = 'carrot';
$snoopy->cookies['something'] = 'value';
/ submit the data and get the result /
/ output the results /
' . htmlspecialchars($snoopy->results) . '
I used fidler to read the cookies parameters a normal browser sends to the server, to access my account;
Then I set Snoopy cookies vars with the same parameters, and I could access my account via Snoopy.