Hello, usef <[EMAIL PROTECTED]> asked: > Is there any way to get the size of a file without downloading it? > I want to write a program using LWP to download a file only > if it is bigger than 3K but smaller than 500K. > So I need to know the file size in the first place.
Try making a HEAD request - that should return file size and last modification date. This obviously will not work for CGI URLs. HTH, Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>