RE: getting the File size of image URL

2006-10-11 Thread Thomas Bätzler
Anish Kumar K. [EMAIL PROTECTED] asked: Is it possible to calculate the File SIZE which is from HTTP. i.e if I wanted to know file size of http://www.yahoo.com/images/a.gif from PERL.. Send a HEAD request for the URI and look at the Content-Length header of the response object:

Re: getting the File size of image URL

2006-10-11 Thread Jeff Pang
From the $ENV{CONTENT_LENGTH} -Original Message- From: Anish Kumar K. [EMAIL PROTECTED] Sent: Oct 11, 2006 2:17 AM To: beginners@perl.org Subject: getting the File size of image URL Is it possible to calculate the File SIZE which is from HTTP. i.e if I wanted to know file size of