function WaitForData(Timeout: integer): boolean;
Waits for the received data from the Web server during amount of time specified in the Timeout parameter in milliseconds, and then returns control. The calling thread will wait indefinitely when the Timeout parameter is set to -1.
If data from server was received and is in the buffer for reading, the method returns True. False otherwise.