При использовании функции, пишет не верный логин или пароль $post_auth = post('https://login.vk.com/?act=login', Array( 'params' => 'act=login&role=al_frame&_origin='.urlencode('http://vk.com').'&ip_h='.$ip_h[1].'&lg_h='.$lg_h[1].'&email='.urlencode($login).'&pass='.urlencode($password), 'headers' => Array( 'accept: '.$headers['accept'], 'content-type: '.$headers['content-type'], 'user-agent: '.$headers['user-agent'], ), 'cookies' => $get_main_page['cookies'] )); Код $post_auth = post('https://login.vk.com/?act=login', Array( 'params' => 'act=login&role=al_frame&_origin='.urlencode('http://vk.com').'&ip_h='.$ip_h[1].'&lg_h='.$lg_h[1].'&email='.urlencode($login).'&pass='.urlencode($password), 'headers' => Array( 'accept: '.$headers['accept'], 'content-type: '.$headers['content-type'], 'user-agent: '.$headers['user-agent'], ), 'cookies' => $get_main_page['cookies'] ));