else
{
client.println();
}
On every pass through loop, if no switch is pressed, send a carriage return and line feed. Why? You will be sending a lot of these.
delay(100);
"My program takes too long" and this call are NOT compatible.