$post_data = array('USER_LOGIN' => 'allo', 'USER_PASSWORD' => 'ppssssdsq');
$result = _parser_post_request('https://k206.net/auth/?login', $post_data, array('max_redirects' => 0));
if (preg_match('#PHPSESSID=(.+?);#', $result->headers['set-cookie'], $matches)) {
variable_set('parser_data_PHPSESSID', $matches[1]);
}
return $result;