On Feb 20, 2005, at 7:31 AM, JD Daniels wrote:
Header("Content-Type: application/download");
Header("Content-Disposition: attachment; filename=file.ext");
did what you are after.
I'm not too sure exactly how, but you should be able to setup a pipeline that does whatever it is your doing normally, then send those two headers.
The serializer is in control of the content type, so you just make an instance that's configured according to what you want; e.g.,
<serializer logger="sitemap.serializer.text.download"
mime-type="application/force-download"
name="text-download"
src="org.apache.cocoon.serialization.TextSerializer"
/>To get control over the filename you can put this in your pipeline and smoke it :-):
<act type="set-header">
<parameter
name="Content-Disposition"
value="attachment ; filename=whatever"
/>
</act>HTH, —ml—
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
