Проблема с сокетамиhttp://softtime.ru/forumПроблема с сокетамиhttp://softtime.ru/forum/read.php?id_forum=1&id_theme=73350#post431913На самом деле не пробелов, а последовательности \r\n\r\n, которые отделяют HTTP-заголовки от тела документа.Проблема с сокетамиSun, 18 Apr 2010 14:33:58 +0300cheopsПроблема с сокетамиhttp://softtime.ru/forum/read.php?id_forum=1&id_theme=73350#post4318711.5 часа сидел, мучался $query='GET / HTTP/1.0 Host: vk.com '; серверу пробелов не хватает, ппц... =)Проблема с сокетамиSat, 17 Apr 2010 22:43:32 +0300NSDalerПроблема с сокетамиhttp://softtime.ru/forum/read.php?id_forum=1&id_theme=73350#post431870"?php set_time_limit(0); $query='GET / HTTP/1.0 Host: vk.com'; $socket=fsockopen('vk.com',80,$errno,$errstr,60); if (!$socket){ echo'error';exit; } fwrite($socket,$query); $ln=''; while(!feof($socket)) $ln.=fgets($socket,1024); fclose($socket); echo $ln; ?"...Проблема с сокетамиSat, 17 Apr 2010 22:37:38 +0300NSDaler