You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Remy Maucherat <re...@apache.org> on 2003/01/01 11:47:02 UTC

Re: Bug in PUT method with TC

Pill, Juergen wrote:
> Hello,
> 
> I want to report a bug in the PUT method, if running directly with Tomcat
> and Jakarta-Slide servlet.
> 
> The http client API sends an expect 100-continue header. If running under
> Apache the 100 response code is send from the server and the body is
> delivered correctly. If running directly with the TC port (e.g. 8080) the
> 100 response code is not generated, in this case the client does not send
> the body and the server waits infinite.
> 
> Is this a problem in TC or the servlet implementation. 
> Could we make the client API more robust to handle this case?

I think Tomcat works fine. If you send:

GET / HTTP/1.1
Host: localhost:8080
Expect: 100-continue

You get back (I tested 5.0.1-dev and 4.1.18):

HTTP/1.1 100 Continue

HTTP/1.1 302 Déplacé Temporairement
Location: http://localhost:8080/index.jsp
Content-Type: text/plain
Content-Length: 0
Date: Wed, 01 Jan 2003 10:40:40 GMT
Server: Apache Coyote/1.0

Remy