There's nothing magic about the -attachment header — it's just a hint to the browser to prompt the user to save the content sent by the CGI script (instead of displaying it). But you still have to send the content, i.e. read booklist.csv and print it to STDOUT...
In reply to Re: downloading file with CGI
by almut
in thread downloading file with CGI
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |