Hi

Thanks a lot Mark and Andre for your replies.
As per my requirement I want to add Transfer-Encoding in the client request
header and send request to servlet for priniting the headers there. For one
way, I am doing with Apache http server using mod_jk with mod_headers

<IfModule mod_headers.c>
<Location /my-example>
RequestHeader append Transfer-Encoding "chunked"
</Location>
</IfModule>

Here for testing purpose, If I print request.getHeader("transfer-encoding")
in systemout, it comes as "chunked". But I am getting this error in the
browser.

"OK
The requested resource
/my-example/myServlet
does not allow request data with GET requests, or the amount of data
provided in the request exceeds the capacity limit."

Any help will be appreciated.

Thanks
Amit


On Thu, Sep 16, 2010 at 1:47 PM, Mark Thomas <ma...@apache.org> wrote:

> On 16/09/2010 00:15, André Warnier wrote:
> > Did I totally misread the above, or is the OP talking about request
> > headers, as received by the server from a client request ?
> > In that case, I would think that if the servlet does not see a
> > Transfer-Encoding header, it is because the client request does not
> > contain one.
>
> Yep. I mis-read it. Same issue applies though. Just because a client
> sets it, doesn't mean Tomcat will see it.
>
> A quick look at the code doesn't suggest any reason why this wouldn't work.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to