On Thu, 30 Dec 2004 17:58:09 -0800, Ian Huynh <[EMAIL PROTECTED]> wrote:
> We are using TC 5.0.28 on JDK 1.4.2
> 
> We have a client who POST to TC using  header "Transfer-encoding: chunked"  
> and at the same time specify the "Content-Length" header
> when posting to us.
> 
> It seems that if the Content-Length is specified, TC is dropping the last few 
> bytes..??
> This same customer claims that his code works with the Jetty Servlet (which 
> is the old embedded servlet in JBoss 3.2.1 and earlier).
> We have done some prelim testing and confirmed that
> 
> a) if Content-Length is NOT specified and Chunked encoding is used, TC works 
> as specified.
> b) Jetty works either way (with or without Content-Length).
> 
> My questions are:
> 
> 1. what is the correct behavior in HTTP 1.1?  I've read through the spec but 
> am unable to ascertain whether or not Content-Lenght should NOT be
>    used when chunked encoding is used.
> 
> 2. Is this a bug in TC?
> 
> Unfortunately, our client isn't able to modify the code to NOT include the 
> Content-Length or NOT use Chunk encoding

This should be fixed in CVS, but your HTTP client is completely
broken. I'm sure it won't be the last problem you'll have with it.
You're lucky that this case is to be explicitely supported ...

-- 
xxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to