
14.03.2010, 13:58
|
|
Познающий
Регистрация: 13.08.2009
Сообщений: 92
С нами:
8812922
Репутация:
1
|
|
Вот так вот страница загружается и теперь ты можешь парсить данные..
PHP код:
<?php
$url="https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.google.ru%2F&hl=ru";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, 'User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)');
curl_setopt($curl, CURLOPT_COOKIEFILE, 'C:/cookies.txt');
curl_setopt($curl, CURLOPT_HEADER,1);
curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');
curl_setopt($curl, CURLOPT_AUTOREFERER, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 20);
curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt ($curl, CURLOPT_SSL_VERIFYHOST, 0);
$html = curl_exec($curl); // execute the curl command
curl_close($curl); // close the connection
?>
|
|
|