while (serv_gets(buf), strcmp(buf, "000")) {
line_length = strlen(buf);
total_length = total_length + line_length + 1;
while (serv_gets(buf), strcmp(buf, "000")) {
line_length = strlen(buf);
total_length = total_length + line_length + 1;
||(!strncasecmp(ptr, "/HEAD", 5))
||(!strncasecmp(ptr, "BODY", 4)) ) {
ptr = strchr(ptr, '>');
||(!strncasecmp(ptr, "/HEAD", 5))
||(!strncasecmp(ptr, "BODY", 4)) ) {
ptr = strchr(ptr, '>');