[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Header setting


Hello!

I want to allow the user to download some file from my server and I need
to set the headers from my CGI::App. I need to set this into the
headers:

Content-type: application/octet-stream
Content-Disposition: attachment\; filename=$file

How do I do that? The "application/octet-stream" I guess I can set with:
$self->header_props(-type=>'application/octet-stream')

But what are the options for content-disposition?

Thanks!
-- 
Regards,
Stelian I.


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.