Moin, hab nen Problem mit curl:
PHP-Code:
$uri = 'http://www.clickandeal.it/city/index/set/city_id/163/';
$testit = curl_init();
curl_setopt($testit, CURLOPT_URL, $uri);
curl_setopt($testit, CURLOPT_HEADER, 1);
curl_setopt($testit, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($testit, CURLOPT_AUTOREFERER, TRUE);
curl_setopt($testit, CURLOPT_FOLLOWLOCATION, TRUE);
$test = curl_exec($testit);
curl_close($testit);
var_dump($test);
Ausgabe:
string(710) "HTTP/1.1 302 Found Date: Wed, 28 Mar 2012 15:45:16 GMT Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g X-Powered-By: PHP/5.2.6-1+lenny9 Set-Cookie: frontend=680ca73dcd3f7ccf6f2b87c00c8b0a26; expires=Wed, 28 Mar 2012 16:45:17 GMT; path=/; domain=www.clickandeal.it; HttpOnly Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Set-Cookie: voucher_city=163; expires=Fri, 24-Jul-2054 07:30:34 GMT; path=/; domain=www.clickandeal.it; httponly Location:
http://www.clickandeal.it/index.php Vary: Accept-Encoding Content-Length: 0 Content-Type: text/html; charset=UTF-8 "
Aber kein expliziter Seiteninhalt... Wenn man die Seite im Browser aufruft, sollte man jetzt die Stadt mit der id 163 als Standort benutzen^^
Weiß da jmd Rat?
mfg