From example code:
client.print(String("GET ") + url + " HTTP/1.1\r\n" +
"Host: " + host + "\r\n" +
"Connection: close\r\n\r\n");
delay(10);
// Read response here
More reliable code:
client.print(String("GET ") + url + " HTTP/1.1\r\n" +
"Host: " + host + "\r\n" +
"Connection: close\r\n\r\n");
//Wait up to 10 seconds for server to respond then read response
int i=0;
while((!client.available()) && (i<1000)){
delay(10);
i++;
}
//Read response here
Hopefully that helps someone when making multiple GETs in sequence so that things don't get too jammed up by beginning a new connection before the last one has finished.