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

  char statusHTTP[12];
  char charRead = NULL;
  unsigned char statusCount=0;

  while (client.available() && statusCount<12) {
    charRead = client.read();
    Serial.print(charRead);
    statusCount++;
  }

What is statusHTTP[] for? It's not used anywhere.

Why are you not storing the values read?

  // if there's no net connection, but there was one last time
  // through the loop, then stop the client:
  //if (!client.connected() && lastConnected) {
  //  Serial.println("Closing the previous connection now...");
    client.stop();
  //}

Everything but the client.stop() is commented out. Why? Why isn't client.stop() also commented out?

Here is my code:

You mean "here is some of my code that has nothing to do with the problem I am having".