Your question is not related to Win32 UI, never mind. I suppose you are
using WinInet functions. See the article
http://msdn2.microsoft.com/en-us/library/aa384322.aspx. They have a sample
there which uses InternetReadFile() to receive the response after sending an
HTTP request. You could use InternetQueryDataAvailable() to determine the
size of the response.