in reply to Saving data from a web page?

If you return "Content-type: application/octet-stream\n\n" instead of the normal text/html it forces the browser to open a "Save As" dialog box and save the stdout on your computer.