WebThread.pas : line 169
FileSize := InternetSetFilePointer(fFileHandle, 0, nil, FILE_END, 0);
sometimes (with Apache1.x?) fail (return -1)
infact, according to MSDN,
[...] This function cannot be used once the end of the file has been reached by InternetReadFile. [...]
use of HttpQueryInfo with HTTP_QUERY_CONTENT_LENGTH may be more correct.