Fwd: [Zope-dev] How to return downloadable content from Pytho n Method

Blandford, Simon [BSS Audio UK] Simon.Blandford@bss.co.uk
Fri, 8 Jun 2001 13:10:00 +0100


Hi Gregor,

> First off, please don't send HTML mail to the list.

Ouch! Sorry! Easy mistake to make.

> 
> You will have to set the Content-Type HTTP header to do that:
> REQUEST.RESPONSE.setHeader('Content-Type', content_type)
> where content_type is the right MIME type of the file you return, e.g.
> something like 'application/msword' in your case.
> Hope  that helps.

Yes it works! Thankyou for your help.

Much appreciated,
Simon B.