Possible Duplicate:
how to get the cookies from a php curl into a variable
I have the code below running and what it does is get a web page using curl. My problem is when it gets the web page it doesnt get the cookies from the site.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ''.$stuff_link[0].'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_AUTOREFERER, false);
$html = curl_exec($ch);
curl_close ( $ch );
echo $html;
I tried a few thing none of which worked.