You didn't wait for the data to be transmitted. client.available() returns the number of bytes available in the input buffer. Try with a short delay and a while(client.available()) loop afterwards. Note that client.read() returns exactly one byte of data.