having problem with curl
Posted: Mon Mar 05, 2007 1:07 am
I am having problem with curl, here is my code i want to fetch content of this page on my page. From the page i just want to fetch the search box. but its not working.
i i try this it works fine and shows me output.
not in this case.
Output:
Object moved to here.
any help.
thank you
i i try this it works fine and shows me output.
Code: Select all
curl_setopt($ch, CURLOPT_URL, "http://www.google.com.pk");Code: Select all
header("Cache-control: private, no-cache");
header("Expires: 0");
header("Pragma: no-cache");
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL, "https://www.kulula.com/Default.aspx");
curl_setopt ($ch, CURLOPT_COOKIEJAR, "tmp.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
echo curl_exec($ch);
curl_close($ch);Object moved to here.
any help.
thank you