"Steve McCarthy" <[EMAIL PROTECTED]> wrote:

> public class MyServlet extends HttpServlet {
> 
>   public void doGet(HttpServletRequest request,
>                     HttpServletResponse response)
>               throws IOException, ServletException {
> 
>     ServletOutputStream sos = response.getOutputStream();
>     sos.setStatus(299);    //   <-----  here
>     sos.print("foo");
>     // No flush on sos
> 
>   }
> 
> }

[pier@blossom] ~ $ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.betaversion.org.
Escape character is '^]'.
GET /servlet/MyServlet HTTP/1.0

HTTP/1.1 299 HTTP Response Status 299
Date: Fri, 10 May 2002 00:33:01 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
Connection: close

fooConnection closed by foreign host.
[pier@blossom] ~ $ 

Again, this is what I see on MacOS/X with 4.0.3 and the HTTP/1.1 default
connector... The current Coyote HTTP adapter also works, and actually fixes
the behavior I observed with 302 when Content-Length is set manually to 0.

    Pier

--
I think that it's extremely foolish to name a server after the current U.S.
President.                                                 B.W. Fitzpatrick



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

Reply via email to