Inconsistent HTTP Connnection

zoomkat:
I can't beleve this code is yours! It doesn't contain the magic pixie dust (below) that makes all things work! :slight_smile: I notice the code does have a fat 2000ms delay that has been used in older code.

void setup()

{
  Serial.begin(9600);

// disable the SD SPI interface
  pinMode(4,OUTPUT);
  digitalWrite(4,HIGH);

// rest of your setup
}

The auto reconnection was fixed when use client.connect() in loop. Thank you SurferTim.....i can't believe too, i lost three day to find it. And ignored this.