Hi Oskar / Theo:

It looks like there's a bug in the servlet infrastructure code for posting.

If I make an HttpServlet with the following doPost implementation...

class foobar extends HttpServlet { 
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
   throws ServletException, IOException {

   logger.log(this, "Got POST request", Logger.DEBUGGING);
   resp.setStatus(HttpServletResponse.SC_OK);
   resp.setContentType("text/plain");
   PrintWriter pw = resp.getWriter();
   pw.println("I survived!");
   pw.close();
}

}
... when I try to post to it,  I see the text message but my browser 
(Netscape) throws up a dialog box with a Connection Reset by peer
error message.

Any ideas?

--gj

-- 
Freesites
(0.3) freenet:MSK at SSK@enI8YFo3gj8UVh-Au0HpKMftf6QQAgE/homepage//
(0.4) freenet:SSK at npfV5XQijFkF6sXZvuO0o~kG4wEPAgM/homepage//

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to