I have a Problem fetching URLs with Umlauts (e.g. 'ü') in it.
For example "http://www.ebay.de/bhp/kühlschrank":
My Script:
function getUrlContent($url)
{
//echo $url;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_TIMEOUT, 30); //timeout after 10 seconds
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_ENCODING ,"UTF-8");
$response=curl_exec($ch);
$i = curl_getinfo($ch);
echo "<pre>";
print_r($i);
return $response;
}
$url="http://www.ebay.de/bhp/kühlschrank";
$response = getUrlContent($url);
It always results in a 404.
Any Ideas?