Uno+WiFi Shield: sometimes not able to read returned HTTP data from client

I promised you a hardware fail abort routine. I try not to go back on my word. Here is a 10 second timeout routine to apply to the code you already have. That should be plenty of time for a server to respond.

edit: Server and network traffic will determine the lag in response. The less traffic or faster server/connection, the less response delay.