#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <strings.h>

void main(int argc, char **argv){
	char buf[1024];
	while ( fgets(buf,1024,stdin) != NULL ){
		if ( strlen(buf) < 3 ){
			usleep(100);
			printf("HTTP/1.1 200 OK\r\n");
			printf("Connection: close\r\n");
			printf("Content-type: text/html\r\n\r\n");
			printf("<H1>Testserver</H1>\r\n");
			fflush(stdout);
			usleep(100);
			exit(0);
		}
		
	}
	exit(0);	
}
