but unfortunately the content-length header is missing in this particular example. So my question: is there any other way of checking the size of a remote file via HTTP? Am I missing something? TIA!$ua = LWP::UserAgent->new; # [..] cookies setting skipped $request = HTTP::Request->new("HEAD"); $request->url("http://www.emusic.com/whatever.mp3"); # replace with real MP3 file $response = $ua->request($request); print "dooh" if !defined($response->headers->content_length);
In reply to missing content-length by schalker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |