You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Leszek Gawron <ou...@kompuart.pl> on 2002/08/31 14:46:36 UTC
Setting Content-Length
I'm using as an application server for pocket pc application. The problem is
downloading even a small file via 19200 GPRS modem takes time, so I wanted to
provide a user with progress bar. The problem is that cocoon is not sending
Content-Length header. Is there a nice and clean way to include it in response
header?
ouzo
--
__
| / \ | Leszek Gawron // \\
\_\\ //_/ ouzo@vip.net.pl _\\()//_
.'/()\'. Phone: +48(600)341118 / // \\ \
\\ // recursive: adj; see recursive | \__/ |
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Setting Content-Length
Posted by Vadim Gritsenko <va...@verizon.net>.
Leszek Gawron wrote:
>I'm using as an application server for pocket pc application. The problem is
>downloading even a small file via 19200 GPRS modem takes time, so I wanted to
>provide a user with progress bar. The problem is that cocoon is not sending
>Content-Length header. Is there a nice and clean way to include it in response
>header?
> ouzo
>
>
AbstractSerializer.java has:
/**
* Test if the component wants to set the content length
*/
public boolean shouldSetContentLength()
Unfortunately, this valus is not configurable. If you subclass
HTMLSerializer.java or XMLSerializer.java (whatever you use), you can
return true from this method, and Cocoon will buffer response and set
content length header.
Vadim
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>