in reply to Re: Re: Current download information..
in thread Current download information..

Sounds like you got Dominus's advice, and that's the way to go. The download actually happens at this line here:
$resp = $ua->request($req);
When you get your $resp object back, the request has already been made and a response (hence 'resp') has been retrieved from the server in its entirety. The content method is just accessing that content retrieved in this step.