On Fri, 31 Jul 2009, Francesco Saverio Giudice wrote: Hi,
>> In above code you do not check for additional CONTENT-LENGTH data. > [I have already seen your following message) > The non inet code was the original I didn't use and I forgot to change. But > I will check better your code and I will change httpsrv. > Thank you. One fix to the code I've sent. I forgot to add header terminator striped by hb_InetRecvEndBlock(). Please change: /* receive query */ #ifdef USE_HB_INET cRequest := hb_InetRecvEndBlock( hSocket, CR_LF + CR_LF, @nLen ) #else to: /* receive query */ #ifdef USE_HB_INET cRequest := hb_InetRecvEndBlock( hSocket, CR_LF + CR_LF, @nLen ) IF nLen > 0 cRequest += CR_LF + CR_LF ENDIF #else best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour