$url = 'http://pathfinder.rsbauer.com/wifi/networkstats.php'; $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); // allows us to capture the HTML // curl_setopt($curl, CURLOPT_HEADER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); // 0 = no follow, 1 = follow curl_setopt($curl, CURLOPT_REFERER, ''); // the referrer we came from curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030401'); $page = curl_exec($curl); echo $page; ?>