rmckillen has asked for the wisdom of the Perl Monks concerning the following question:
If I make a "simple_request" instead of a "request" can I still get the file size? Or can you only get a file size with "request"? Thanks, Ryan($ua = LWP::UserAgent->new)->timeout(20); $ua->request(HTTP::Request->new('HEAD', $url)) $size = (head $url)[1];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP: request vs. simple_request
by merlyn (Sage) on Mar 08, 2001 at 02:31 UTC |