avad0n

Рейтинг
2
Регистрация
15.10.2012
platitude:
Покажите вывод содержимого переменной $response с включёнными заголовками в cURL, пожалуйста

HTTP/1.1 503 Service Unavailable

Date: Tue, 16 Oct 2012 18:44:03 GMT

Pragma: no-cache

Expires: Fri, 01 Jan 1990 00:00:00 GMT

Cache-Control: no-cache, must-revalidate

Content-Type: text/html

Server: HTTP server (unknown)

Content-Length: 2563

X-XSS-Protection: 1; mode=block

X-Frame-Options: SAMEORIGIN

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head><meta http-equiv="content-type" content="text/html; charset=utf-8"><title>http://www.google.com/</title></head>

<body style="font-family: arial, sans-serif; background-color: £fff; color: £000; padding:20px; font-size:18px;" onload="e=document.getElementById('captcha');if(e)`e.focus();ñ">

<div style="max-width:400px;">

<hr noshade size="1" style="color:£ccc; background-color:£ccc;"><br>

To continue, please type the characters below:<br><br>

<img src="/sorry/image?id=10677437520191455856&amp;hl=en" border="1" alt="Please enable images"><br><br><form action="Captcha" method="get"><input type="hidden" name="continue" value="http://www.google.com/"><input type="hidden" name="id" value="10677437520191455856"><input type="text" name="captcha" value="" id="captcha" size="12" style="font-size:16px; padding:3px 0 3px 5px; margin-left:0px;"><input type="submit" name="submit" value="Submit" style="font-size:18px; padding:4px 0;"><br><br><br></form>

<hr noshade size="1" style="color:£ccc; background-color:£ccc;">

<div style="font-size:13px;">

<b>About this page</b><br><br>Our systems have detected unusual traffic from your computer network. This page checks to see if it&£39;s really you sending the requests, and not a robot. <a href="£" onclick="document.getElementById('infoDiv').style.display='block';">Why did this happen?</a><br><br>

<div id="infoDiv" style="display:none; background-color:£eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;">

This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href="http://www.google.com/accounts/TOS">Terms of Service</a>. The block will expire shortly after those requests stop. In the meantime, solving the above CAPTCHA will let you continue to use our services.<br><br>This traffic may have been sent by malicious software, a browser plug-in, or a script that sends automated requests. If you share your network connection, ask your administrator for help &mdash; a different computer using the same IP address may be responsible. <a href="http://www.google.com/support/bin/answer.py?answer=86640">Learn more</a><br><br>Sometimes you may be asked to solve the CAPTCHA if you are using advanced terms that robots are known to use, or sending requests very quickly.

</div>

IP address: 94.243.223.233<br>Time: 2012-10-16T18:44:03Z<br>URL: http://www.google.com/<br>

</div>

</div>

</body>

</html>

platitude:
curl_setopt($curl,CURLOPT_HEADER,false);
должно быть
curl_setopt($curl,CURLOPT_HEADER,1);
иначе заголовки с куками не будут переданы в $response

Изменил, но результат тот же.

12
Всего: 12