I am trying to get the filesize of a remote file, while acquiring as little as possible data, and failing miserably. The best I can think of is sending a HEAD request(using XMLHTTP), then getting the Content-Length header, but the site I'm contacting does not send Content-Length at all, so this fails.

Can anyone help me with some other way to acomplish this?

Thanks in advance for any help you might offer.