Здравствуйте, подскажите что делаю не так, хочу зайти через авторизацию и прочесть страницу.Вроде и данные все посылаю и всеравно голяк. Вот мой код. $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'POST http://www.kg-r.com/api/login'); curl_setopt($curl, CURLOPT_COOKIEJAR, 'cookies.txt'); curl_setopt($curl, CURLOPT_COOKIEFILE, 'cookies.txt'); curl_setopt($curl, CURLOPT_USERAGENT, "Opera/10.00 (Windows NT 5.1; U; ru) Presto/2.2.0"); curl_setopt($curl, CURLOPT_FAILONERROR, 1); curl_setopt($curl, CURLOPT_REFERER, 'POST http://www.kg-r.com/api/login'); curl_setopt($curl, CURLOPT_TIMEOUT, 3); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, 'login=userName&password=*****&rememberme=false'); curl_setopt($curl, CURLOPT_HEADER, 1); curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt ($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); $result = curl_exec($curl); curl_close($curl); echo $result;