How to check remote file size before downloading

Hi,
i have a question, can’t find any information about.

In my application i must download an sqlite file
that can only increase in size, so it will always
be a little bit larger than the one into the the
device.
I need to check the file size remotely and compare
with local file size before downloading.
(Just to avoid wasting of band)

For now i simply download file using this line and it works (unconditionated download):

network.download( “http://www.mysite.com/myremotefile.db”, “GET”, networkListener, “downloadedfile.db”, system.DocumentsDirectory )

please i need an example to check remote size and compare
with local, thank you very much. Roberto [import]uid: 107268 topic_id: 28623 reply_id: 328623[/import]

Hi Roberto,

Did you solve your question?
I need to check the remote file size too.
I’d appreciate your help.

TIA

Alberto [import]uid: 44013 topic_id: 28623 reply_id: 140349[/import]

Hi Roberto,

Did you solve your question?
I need to check the remote file size too.
I’d appreciate your help.

TIA

Alberto [import]uid: 44013 topic_id: 28623 reply_id: 140349[/import]