Do you have a question? Post it now! No Registration Necessary. Now with pictures!
August 9, 2007, 12:42 pm
rate this thread
I need to screen scrap a page using CURL. I've been trying for hours the
access it, but I can't bypass its SSL protocl.
This is the code I've been using
private function ucitaj($url)
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U;
Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$result = curl_exec ($ch);
return new SimpleXMLElement($result);
This is the page it try to grab:
I tried googling for a solution, but i failed miserably. I don't know
what i+m doing wrong , and what I need to do to solve it.
Any help is really Appriciated