[opencms-dev] Setting Content Disposition and Content Type

Thomas Maerz thomasmaerz at gmx.de
Sun Mar 13 22:56:06 CET 2005


"Brett Beaumont" <brett.beaumont at sytec.co.nz> writes:

> response.setContentType("application/x-download");
> response.addHeader("Content-Disposition", "attachment;
> filename=test.zip");
>
> In general, this approach would work, but it seems like OpenCMS is
> removing the headers from the response (or never adding them in the
> first place). 

I do not think so, actually it works for me with
"application/octet-stream". Try

> response.addHeader(

and/or

response.setHeader(

I guess, you will figure it out.


Regards,
Thomas




More information about the opencms-dev mailing list