I've got a problem with HttpServletResponse. Here's my test-servlet doGet():
response.setContentType("text/plain"); PrintWriter out = response.getWriter(); out.print("TEST"); Here's what I get telneting: ------------------------------------------------------------ platon% telnet localhost 8888 GET /lux/testz HTTP/1.1 Host: localhost HTTP/1.1 200 OK Date: Mon, 25 Feb 2002 17:57:20 GMT Server: Orion/1.5.4 Connection: Close Content-Type: text/plain Transfer-Encoding: chunked 4 TEST 0 ------------------------------------------------------------- What 4? What 0? What extra newline? This breaks just about everything. Where did I go wrong, any ideas? Tommi Penttilä