Hai,

I had scrapped the website with the help of code in the following link

http://www.daniweb.com/code/snippet293.html

When i tried to scrap the following web site,it is keep on refereshing,

Kindly help me to solve this issue.

Thanks
ravi

<?php
require_once(dirname(__FILE__).'/class_http.php');

$h = new http();
//$h->ttl = 1000;

if (!$h->fetch("https://secure.classmates.com/profile/fullLogin.html","daily")) {

    echo "<h2>There is a problem with the http request!</h2>";

    echo $h->log;

    exit();

}

echo "Status: ".$h->status;

echo "<pre>".$h->header."</pre>";

echo $h->body;


?>

could you post the html-source of your browser? that may help other users to grasp the problem.
Cheers
Simon

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.