Receiving requests

Hi,

What is the most common way for receiving requests from a browser?
I tried to use the following code, but the program stops in the loop.
What's wrong in this way of doing?


while ((nread = recv(socket, buffer, BUFFER_SIZE, 0))>0)
	{
	/* Sparse request */
	}
/* rest of program */


Thanks

Fabien


+--------------------------+----------------------------+
| Fabien Petitcolas        |  e-Mail:   fapp2@cam.ac.uk |
| University of Cambridge  |  Tel:      (01223) 330926  |
| Ecole Centrale de Lyon   |  Wolfson College           |
| http://www.ec-lyon.fr/   |  CB3 9BB Cambridge         |
+--------------------------+----------------------------+

Received on Sunday, 24 March 1996 14:54:57 UTC