[En-Nut-Discussion] HTTP GET problem

Czerteak czerteak at email.cz
Thu Oct 16 16:45:32 CEST 2003


Shouldn't it be "GET xyz HTTP/1.0" or HTTP/1.1 and DOUBLE enter (linefeed) 
after that? ("GET index.html HTTP/1.0\n\n") - not sure with the \n symbols 
but you know what I mean... :-)

Czerteak


> On Thu, 16 Oct 2003 10:40:40 +0200
>
> Harald Kipp <harald.kipp at egnite.de> wrote:
> > Hi Cosmin,
> >
> > >         strcpy(msg, "GET /nut/httpq.php");
> > >         NutTCPSend(tcpsock, msg, strlen(msg));
> >
> > NutTcpSend(tcpsock, 0, 0); /* Flush buffer */
> >
> > >         memset(msg, 0 , 512);
> > >         rt = NutTCPReceive(tcpsock, msg, 500);
> > >         printf("Got %i bytes.\r\n", rt);
> >
> > Harald
>
> 	Doesn't work...
>
> Cosmin
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo/en-nut-discussion




More information about the En-Nut-Discussion mailing list