Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Adding a download link with perl CGIby Corion (Patriarch) |
on Mar 31, 2017 at 17:21 UTC ( [id://1186629]=note: print w/replies, xml ) | Need Help?? |
I don't know what you mean by "strictly use html", but if you want to send a file for the user to download, you just send the appropriate headers and then the file content. The appropriate headers are Content-Type and Content-Disposition: attachment; filename="example.csv". With CGI, sending headers is basically:
In Section
Seekers of Perl Wisdom
|
|