Привет всем! Есть проблема ... у меня достатачно большой опыт в работе с php & curl(написание ботов) но с таким столкнулся первый раз... Пытаюсь запостить на твиттере статус без АПИ снифаю хидеры .. делаю тоже самое а оно не даёт =\\ В инете везде пишут что теперь никак без oAuth не запостишь.. но я не верю .. ведь браузер то может .. Вот код может у вас будут идеи? PHP: <?php set_time_limit(0); require_once('mod/cURL.class.php'); $cook = dirname(realpath(__FILE__)).'/cookie.txt'; $c = new cURL(true,$cook); /* Логинимся.. тут всё окей... */ $c->get('https://twitter.com'); $c->post('https://twitter.com/sessions?phx=1','session%5Busername_or_email%5D=login&session%5Bpassword%5D=pass&scribe_log=%5B%5D&redirect_after_login=%2F&remember_me=1'); $r = $c->get('https://twitter.com'); /* Постим статус... тут проблема */ preg_match('#"postAuthenticityToken":"(.+?)",#',$r,$token); $headers = array('Accept: application/json, text/javascript, */*; q=0.01'); $headers[] = 'X-Requested-With: XMLHttpRequest'; $headers[] = 'X-PHX: true'; //Пробывал и строкой и массив данные отправлять... это тоже влияет.. $post = array('include_entities' => 'true','status' => 'status','post_authenticity_token' => $token[1]); echo $c->post('https://api.twitter.com/1/statuses/update.json',$post,$headers); ?> cURL.class.php PHP: <?php class cURL { var $headers; var $user_agent; var $compression; var $cookie_file; var $proxy; function cURL($cookies=TRUE, $cookie_file='cookies.txt', $compression='gzip', $proxy='') { $this->headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'; $this->headers[] = 'Connection: Keep-Alive'; $this->headers[] = 'Content-type: application/x-www-form-urlencoded; charset=UTF-8'; $this->user_agent = $_SERVER['HTTP_USER_AGENT']; $this->compression=$compression; $this->proxy=$proxy; $this->cookies=$cookies; if ($this->cookies == TRUE) $this->cookie_file = $cookie_file; } function get($url) { $process = curl_init($url); curl_setopt($process, CURLOPT_HTTPHEADER, $this->headers); curl_setopt($process, CURLOPT_HEADER, 0); curl_setopt($process, CURLOPT_USERAGENT, $this->user_agent); if ($this->cookies == TRUE) { curl_setopt($process, CURLOPT_COOKIEFILE, $this->cookie_file); curl_setopt($process, CURLOPT_COOKIEJAR, $this->cookie_file); } curl_setopt($process,CURLOPT_ENCODING , $this->compression); curl_setopt($process, CURLOPT_TIMEOUT, 30); if ($this->proxy) curl_setopt($cUrl, CURLOPT_PROXY, $this->proxy); curl_setopt($process, CURLOPT_RETURNTRANSFER, 1); curl_setopt($process, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($process, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($process, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($process, CURLOPT_AUTOREFERER, true); $return = curl_exec($process); curl_close($process); return $return; } function post($url,$data,$headers = false) { if(is_array($headers)) $this->headers = array_merge($this->headers,$headers); $process = curl_init($url); curl_setopt($process, CURLOPT_HTTPHEADER, $this->headers); curl_setopt($process, CURLOPT_HEADER, 0); curl_setopt($process, CURLOPT_USERAGENT, $this->user_agent); if ($this->cookies == TRUE) { curl_setopt($process, CURLOPT_COOKIEFILE, $this->cookie_file); curl_setopt($process, CURLOPT_COOKIEJAR, $this->cookie_file); } curl_setopt($process, CURLOPT_ENCODING , $this->compression); curl_setopt($process, CURLOPT_TIMEOUT, 30); if ($this->proxy) curl_setopt($process, CURLOPT_PROXY, $this->proxy); curl_setopt($process, CURLOPT_POSTFIELDS, $data); curl_setopt($process, CURLOPT_RETURNTRANSFER, 1); curl_setopt($process, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($process, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($process, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($process, CURLOPT_POST, 1); $return = curl_exec($process); curl_close($process); return $return; } } ?> А в ответ Code: {"errors":[{"code":99,"message":"Unable to verify your credentials"}]}