Hans Leidekker : winhttp: WinHttpQueryDataAvailable should do a blocking read if more data is expected .