Здравствуйте, crawler, Вы писали:
C>Не поверишь я со вчерашней ночи по всякому пробовал
C>char* response = "HTTP/1.1 200 OK \r\n Content-Type:text/html Content-Length:200 \r\n\r\n <HTML>\n<BODY>\nHallo\n</BODY>\n</HTML> \r\n";
C>ret = send(sock,response,strlen(response)+1,0);
Кхэ-кхэ

. Это что за самодеятельность?
char* response = "HTTP/1.1 200 OK \r\n Content-Type:text/html Content-Length:200 \r\n\r\n <HTML>\n<BODY>\nHallo\n</BODY>\n</HTML> \r\n";
RFC2616
When a Content-Length is given in a message where a message-body is
allowed, its field value MUST exactly match the number of OCTETs in
the message-body. HTTP/1.1 user agents MUST notify the user when an
invalid length is received and detected.
C>Боюсь что здесь ошибка в чем-то другом ...
Почитай внимательно RFC2616:
раздел 4.3 Message Body и
раздел 4.4 Message Length
C>может CR LF последовательность не \r\n а как-то по другому должна быть ?
Тут все правильно у тебя.