Create an agent with the following Lotusscript code in it.
Print "Content-Disposition: Attachment;filename=""sampleDownloadAbleFile.txt"""
Print "this text is from the server"
Print "this has not been saved any where in the server"
Save the agent preview it on the web. You will be able to download a text file