in reply to Pulling HTML from a remote site and writing a portion of it to a file on server
use CGI qw/:standard/; print header; [download]