Ok, i'm running this code:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_COOKIEJAR, "waimak01cookie");
curl_setopt($ch, CURLOPT_URL,"http://www.advancedinformation.net/client.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "username=paulsaunders132&password=&challenge=f0be908051754a0804f901847f534789&response=fb58065d421a8637559c927c99cc909a");
curl_exec ($ch); // execute the curl command
curl_close ($ch);
unset($ch);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_COOKIEFILE, "waimak01cookie");
curl_setopt($ch, CURLOPT_URL,"http://www.advancedinformation.net/client.php");
$buf2 = curl_exec ($ch);
curl_close ($ch);
echo "<PRE>".htmlentities($buf2);
?>
one thing to note is that the page doesn't actually post the password, it uses an md5 challenge and response, so i did it by hand as you can see.
now, it's not logging in, but i've noticed that there is no file called "waimak01" in that directory on the server. what might be going on here? i'm not 100% clued up on encryption, but it's possible the problem is there. how might i go about getting my program to parse the page and run the javascript? i'm pretty sure that's not going to work though, getting php to parse javascript, ha, i just realised what a crazy notion that is :p sigh 🙁
any ideas?