Also, although not related to the problem, a good suggestion is avoid doing many client.print() calls, it is better to concatenate multiple lines into a String and get it sent with a single client.print().
Also, although not related to the problem, a good suggestion is avoid doing many client.print() calls, it is better to concatenate multiple lines into a String and get it sent with a single client.print().