Hi folks,

I am using LWP::UserAgent and want to skip requests ($ua->request)
that would exceed a certain filesize. I understand that 
$ua->max_size($max) will abort the download when the limit
is reached but can you also figure out the filesize right from
the beginning and then abort if necessary _before_ downloading
up to $max bytes ? The callback routine  $ua->request($req,\&callback)
seems of no use for this purpose or is the total filesize stored in the response 
object while download is still in progress ? Can't figure this out by
the manpages :-)

Thx in advance
Uli

Reply via email to