Guest_imported
New member
- Jan 1, 1970
- 0
How do I get the file size from
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/usr/local/bin/perl
use LWP::Simple;
$url = '[URL unfurl="true"]http://www.someserver.com';[/URL]
($content_type,$doc_length,$modified,$expires,$server) = head($url);
print "For $url, doc length is $doc_length.\n";
#!/usr/local/bin/perl
use LWP::Simple;
$url = '[URL unfurl="true"]http://www.someserver.com';[/URL]
getstore($url,"junk.html");
$size = (stat('junk.html'))[7];
print "size - $size\n";
unlink './junk.html';