Web Hosting Talk







View Full Version : php curl question security


WebCobra
02-17-2010, 06:52 PM
Hi I have a curious question. With php and curl, is it secure that if curl downloads any url whatever it is?

you see im making a hotfile premium downloader which requires a auth cookie.

thanks...


$url = 'http://hotfile.com/dl/2552827/kh5g4d36/hotfile_file.zip.html';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_COOKIE, $cookie);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
$page = curl_exec($ch);
curl_close($ch);
unset($ch);