Re: Adding Transfer Encoding header if not present

2010-09-16 Thread André Warnier
Amit, The Transfer-Encoding header is not one which you can just add to a request, and expect it to work. You should consult the HTTP RFC 2616, to find out what it really means. In particular, a value of "chunked" 1) only makes sense if the request has a body (which is not the case for a GET

Re: Adding Transfer Encoding header if not present

2010-09-16 Thread Amit Puri
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 RequestHeader append Tra

Re: Adding Transfer Encoding header if not present

2010-09-16 Thread Mark Thomas
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

Re: Adding Transfer Encoding header if not present

2010-09-15 Thread André Warnier
Mark Thomas wrote: On 15/09/2010 20:39, Amit Puri wrote: Hi All I am using tomcat 6.0.26 I've got a simple web application deployed where I am printing all header information through servlet. By default I am not able to see Transfer-Encoding header when I do request.getHeader Enumeration enm =

Re: Adding Transfer Encoding header if not present

2010-09-15 Thread Mark Thomas
On 15/09/2010 20:39, Amit Puri wrote: > Hi All > > I am using tomcat 6.0.26 > I've got a simple web application deployed where I am printing all header > information through servlet. By default I am not able to see > Transfer-Encoding header when I do request.getHeader > > Enumeration enm = reque

Adding Transfer Encoding header if not present

2010-09-15 Thread Amit Puri
Hi All I am using tomcat 6.0.26 I've got a simple web application deployed where I am printing all header information through servlet. By default I am not able to see Transfer-Encoding header when I do request.getHeader Enumeration enm = request.getHeaderNames(); while (enm.hasMoreElements()) { S