[En-Nut-Discussion] HTTP GET problem

Cosmin Buhu cosminbuhu at lycos.co.uk
Thu Oct 16 10:45:07 CEST 2003


	Hello,

	I have the following problem: connect to my web server, issue
a GET command, the server sends the requested page than quits the connection.
Problem is ethernut does not receive the page. Here is the snippet:

	strcpy(msg, "GET /nut/httpq.php");
	NutTCPSend(tcpsock, msg, strlen(msg));
	memset(msg, 0 , 512);
	rt = NutTCPReceive(tcpsock, msg, 500);
	printf("Got %i bytes.\r\n", rt);

	Doing by hand in a telnet session is working.

Thanks,
Cosmin



More information about the En-Nut-Discussion mailing list