Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: LWP file size

by Corion (Patriarch)
on Jun 12, 2025 at 10:18 UTC ( [id://11165386]=note: print w/replies, xml ) Need Help??


in reply to LWP file size

Have you checked that the size of the content before writing it to the file matches the size that the web server tells you?

say length $response->content(); say $response->header("Content-Length");

Also have a look at the ->add_handler method to add a progress callback so you see where in the HTTP processing you are.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11165386]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2025-12-06 21:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (85 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.