Возможны дополнительные параметры, но для вашей задачи может быть достаточно следующих.
//Initialise Curl
$ch = curl_init();
//set the url to be used
curl_setopt($ch, CURLOPT_URL, $url);
//follow HTTP 3xx redirects
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
//automatically update the referer header
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
//accept the responce after the execution
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
//don't verify the peer's SSL certificate
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
//set the browser
curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
//executes given cURL session.
$html = curl_exec($ch);
//disable libxml errors
libxml_use_internal_errors(TRUE);
//closes Curl session, & frees up the associated memory
curl_close($ch);