unable to get end of file while reading HTTP data from socket

I am trying to read HTTP data from a socket. However, for the final set of data being read using read(), read blocks and the control doesnt come back for further processing. I tried using select, but it didn't work...
Any help would be greatly acknowledged.:slight_smile:

The HTTP Protocol is designed to always send the size of the data in the "Content-Length:" field. You must count the bytes you read after the "\r\n\r\n", so you exactly stop, when there is nothing more to receive.

:b:Thanx for all your help, I got the problem fixed I wasn't deploying the select functions properly... Thnx again for ur effort