cUrl and spaces
Posted: Thu Sep 16, 2004 2:52 pm
Hi folks,
I have a problem with this code:
For example, when i try to download curl.php?file=Whatever_File with spaces.zip
I get:
Not Found
The requested URL /Whatever_File was not found on this server.
...
pls help me
I have a problem with this code:
Code: Select all
<?
...
// $file= urlencode($file);
$ch = curl_init("http://www.site.com/");
curl_setopt ($ch, CURLOPT_URL, $file);
curl_setopt ($ch, CURLOPT_REFERER, "http://www.site.com/");
curl_exec ($ch);
curl_close ($ch);
?>I get:
Not Found
The requested URL /Whatever_File was not found on this server.
...
pls help me