Hi I wrote a script so I can automatically download from hotfile using LWP::useragent. I've managed to get the file to download properly. How do I get the file size of the file before downloading? I need this to display hot much of the file has been downloaded.

link|improve this question

50% accept rate
feedback

1 Answer

up vote 0 down vote accepted

Here is a short snippet that does this.

http://www.bigprism.com/cgi-perl-snippets/get-file-size-over-http.html

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.