[Zope] RESPONSE.Write question
Toby Dickenson
tdickenson at geminidataloggers.com
Tue Sep 16 03:54:21 EDT 2003
On Tuesday 16 September 2003 01:54, Small Business Services wrote:
> I have been trying to get a test routine working that uses
> RESPONSE.write... without success:
>
> Here is the dtml code I have been using:
>
>
> <dtml-call "RESPONSE.setHeader('Transfer-Encoding', 'chunked')">
> <dtml-call "RESPONSE.setHeader('Content-Type', 'text/plain')">
> <dtml-call "RESPONSE.write('Starting')">
>
> <dtml-call "wait(5)">
>
> <dtml-call "RESPONSE.setHeader('Transfer-Encoding', 'chunked')">
> <dtml-call "RESPONSE.setHeader('Content-Type', 'text/plain')">
> <dtml-call "RESPONSE.write('\n\nDone')">
You dont need the Transfer-Encoding lines, or the second Content-Type line.
ZPublisher takes care of that for you.
Im not sure if that is relevant to your problem....
--
Toby Dickenson
More information about the Zope
mailing list