char *query=(char*)malloc(2048); strcpy(query,"POST /"); strcat(query,http_path); strcat(query," HTTP/1.0\nHost: "); strcat(query,http_host); strcat(query,"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 \r\n"); strcat(query,"Accept-Language: ru,en-us;q=0.7,en;q=0.3 \r\n"); strcat(query,"Accept-Encoding: gzip,deflate \r\n"); strcat(query,"Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7 \r\n"); strcat(query,"Keep-Alive: 300 \r\n"); strcat(query,"Connection: keep-alive \r\n"); strcat(query,"Content-Type: application/x-www-form-urlencoded; charset=UTF-8 \r\n"); strcat(query,"X-Requested-With: XMLHttpRequest \r\n"); strcat(query,"Referer: http://vkontakte.ru/index.php \r\n"); strcat(query,"Content-Length: 65 \r\n"); strcat(query,"Cookie: remixlang=0; remixchk=5; remixautobookmark=14; remixclosed_tabs=64; lang=0; remixgroup_closed_tabs=0 \r\n"); strcat(query,"Pragma: no-cache \r\n"); strcat(query,"Cache-Control: no-cache \r\n"); strcat(query,"op=a_login_attempt&email=mail%40mail.ua&pass=123456&expire=0");