[cgiapp] redirect/content type
Rhesa Rozendaal
perl at rhesa.com
Wed Jun 11 21:27:41 EDT 2008
Benjamin Hitz wrote:
> This is probably a vanilla CGI question, but I am working under CGIapp
> so here goes.
>
> I have a cgi::app that shows a table. I want to have a link which
> generates a plain text (tab delim) version of the table, and pops up a
> "save as" window.
I can recommend CGI::Application::Plugin::Output::XSV for this.
And if you have files on disk that you want to serve, I recommend
CGI::Application::Plugin::Stream.
Both these plugins take care of the headers and content generation for you,
efficiently.
Rhesa
More information about the cgiapp
mailing list