Class Jetty400Repro

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by Jetty400Repro
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class Jetty400Repro
extends HttpServlet

Repro a jetty problem.

Author:
hughw
See Also:
Serialized Form

Constructor Summary
Jetty400Repro()
           
 
Method Summary
protected  void doPost(HttpServletRequest req, HttpServletResponse resp)
           
static void main(String[] args)
          Jetty 7.0.1 returns 400 on the second POST, when you send both Connection: Keep-Alive and Expect: 100-Continue headers in the request.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jetty400Repro

public Jetty400Repro()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Jetty 7.0.1 returns 400 on the second POST, when you send both Connection: Keep-Alive and Expect: 100-Continue headers in the request.

Parameters:
args -
Throws:
Exception

doPost

protected void doPost(HttpServletRequest req,
                      HttpServletResponse resp)
               throws ServletException,
                      IOException
Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.