[Zope] Questions about response.write()
Dieter Maurer
dieter@handshake.de
Wed, 29 Jan 2003 21:20:32 +0100
treblid@tpg.com.au wrote at 2003-1-29 13:45 +1100:
> I have created a dynamic PDF file which I would like to send to the client without creating any
> Zope objects. I have the contents of the PDF file in a variable, and I use the follow snippet of
> code to send the pdf file to the client
> ---
> RESPONSE.setHeader("Content-Type", "application/pdf")
> RESPONSE.write(pdf)
According to the HTTP 1.1 spec, you must provide a
correct "Content-Length" header.
Dieter