$curl = curl_init();
$link = 'http://profiwm.com/forum';
$user_agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64)';
curl_setopt($curl, CURLOPT_URL , $link);
curl_setopt($curl, CURLOPT_USERAGENT, $user_agent);
curl_setopt($curl, CURLOPT_REFERER, 'google.com');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_COOKIESESSION, true);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($curl, CURLOPT_COOKIE, 'username=мой ид;password=мой пароль из куков');
curl_setopt($curl, CURLOPT_HEADER, false);
echo curl_exec($curl);
curl_close($curl);