http://www.perlmonks.org?node_id=854888


in reply to Re^2: libwww-perl basics
in thread libwww-perl basics

You could write the file to a temp file, parse the header, and then rename the file. As an alternative, lwpcook shows how to process a file as it arrives, so maybe you can read the header when the first chunk comes in.