Inconsistent HTTP Connnection

cantore:
One question? How can we be sure that the program will never stop on the line

while(client.connected()

If the client connection does not end we will never go out of the while loop

Good question. There is the possibility of a lockup there if the connection breaks. Here is the thread with the discussion and the patch for a 10 second timeout.