php - cURL+redirect with cookie -
php - cURL+redirect with cookie - how can redirect user web site cookie? im using code <?php $fields_string = 'client_login=jadro&client_pass=jadro&client_remember=on&action=client_login'; $options = array( curlopt_returntransfer => true, curlopt_header => true, curlopt_followlocation => true, curlopt_useragent => "mozilla/5.0 (windows; u; windows nt 6.1; ru; rv:1.9.1.7) gecko/20091221 firefox/3.5.7 firephp/0.3", curlopt_autoreferer => false, curlopt_connecttimeout => 120, curlopt_timeout => 120, curlopt_maxredirs => 10, ); $ch = curl_init(); curl_setopt_array( $ch, $options ); curl_setopt($ch,curlopt_url,'http://orion10.ru'); //curl_setopt($ch,curlopt_post,count(explode('&',$fields))); curl_setopt($ch,curlopt_postfields,$fields_string); //curl_setopt($ch,curlopt_cookiejar, 'cooc.txt