http request in time intervals
Immediately after making the request when reading client.available() will be 0 since no data was received yet so:

  while(client.available()!=0)
  {  
    content = content + String(char (client.read()));
  }


Will never actually run. Try something like:

unsigned long last = millis();
String content = "";

while(client.connected()) {
  int len = client.available();
  if(len &gt; 0) {
    last = millis();

    char buff[len];
    for(int i = 0; i &lt; len; i++) {
      buff[i] = client.read();
    }
    content += String(buff);

  } else {
    if(millis() - last &gt; 2000) {
      client.stop();
      return;
    }
    delay(1);
  }
}


Also note if you use Connection: close on the client then you must close the connection. This example doesn't do that until 2 seconds have passed. To do this properly you'd need to also add header parsing to your client and close the connection once the amount specified in Content-Length is received.