Hi there,
Currently my script utilizes cURL's functions to login to the site "flashgamecentral.com". You can find the script below. I have edited out my password of course.
$login = "http://www.flashgamecentral.com/login_script.php";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $login);
curl_setopt($c, CURLOPT_COOKIEJAR, "cookies.txt");
curl_setopt($c, CURLOPT_COOKIEFILE, "cookies.txt");
curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_POSTFIELDS, "username=mikehw&password=...");
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);
$login_done = curl_exec($c);
echo $login_done;
It is working fine, and it outputs the page with me logged in. Now from here, I want to navigate (via cURL), another page on the site while still logged in. Let's say I wanted to navigate to 'http://www.flashgamecentral.com/play-1.html' now that I'm logged in. How do I do this?
Thanks!