$useragent = 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)'; curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_REFERER, 'http://forums.alliedmods.net');