<? session_start(); header ( "Content-type: image/jpeg" ); $ch = curl_init (); curl_setopt ($ch, CURLOPT_URL, "http://www.mts.com.ua/back/modules/golden/captcha.php" ); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return into a variable curl_setopt($ch, CURLOPT_USERAGENT, "Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.6.30 Version/10.62" ); curl_setopt($ch, CURLOPT_TIMEOUT, 10 ); curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt" ); //путь к файлам cookie curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt" ); $a = curl_exec ($ch); curl_close ($ch); echo $a; ?>