Hello all, 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) --- The problem is that it works under I.E., Netscape 6 but not Netscape 7. Under Netscape 7, nothing is received. My Zope is configured behind Apache SSL. I think this might be the problem, but ain't sure. Anybody knows what gives? Thanks in advance Regards, Tj
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
participants (2)
-
Dieter Maurer -
treblid@tpg.com.au