I am having problems with curl on a particular site that uses javascript cookies. I cant get the page contents, only a javascript error message is returned. Is there a workaround? Maybe a way to set the needed cookie file before loading the page? Code being used: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,'http://www.woothemes.com'); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); $results = curl_exec($ch); echo $results; PHP: Site is: http://www.woothemes.com Thanks
Since all you seemed to need is the HTML content, i tried this: echo file_get_contents('http://www.woothemes.com/'); PHP: But this didn't work either. It worked for all other websites but not this one. I think they are blocking it somehow.