Hello--
Im having a small problem trying log into gmail using curl...
Im using a GET post to login, I extract the link it forwards to and then try to open it. I get redirected to the main login page.
My cookie.txt file is blank. Gmail uses cookies...
function indir($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "/home/simplepr/public_html/gmail/cookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "/home/simplepr/public_html/gmail/cookie.txt");
$ana = curl_exec ($ch);
curl_close ($ch);
return $ana;
}