DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12699>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12699 Only one cookie sent back to Apache2 with mod_jk2 and Tomcat4.1 ------- Additional Comments From [EMAIL PROTECTED] 2002-10-17 15:35 ------- Delighted to. I'm appending servlet code (a modified version of HelloWorldExample), the HTTP request I submit via telnet to port 80 on my machine, and the responses from apache with JK1 and apache with JK2. -----------servlet code------------- import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorldExample extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html"); response.addCookie(new Cookie("fee", "fie")); response.addCookie(new Cookie("foe", "fum")); response.addCookie(new Cookie("foo", "bar")); PrintWriter out = response.getWriter(); out.println("<html>"); out.println("<head>"); String title = "Hello, World!"; out.println("<title>" + title + "</title>"); out.println("</head>"); out.println("<body bgcolor=\"white\">"); out.println("<h1>" + title + "</h1>"); out.println("</body>"); out.println("</html>"); } } -----------------HTTP REQUEST----------------------- GET /examples/servlet/HelloWorldExample HTTP/1.1 Host: bn.mypoints.com Connection: close -----------------HTTP RESPONSE, JK1----------------- HTTP/1.1 200 OK Date: Thu, 17 Oct 2002 15:27:37 GMT Server: Apache/2.0.43 (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6g mod_jk/1.2.0 Set-Cookie: fee=fie Set-Cookie: foe=fum Set-Cookie: foo=bar Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=ISO-8859-1 71 <html> <head> <title>Hello, World!</title> </head> <body bgcolor="white"> <h1>Hello, World!</h1> </body> </html> 0 ------------------------HTTP RESPONSE, JK2-------------------- HTTP/1.1 200 Date: Thu, 17 Oct 2002 15:24:32 GMT Server: Apache/2.0.43 (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6g mod_jk2/2.0.0 Content-Type: text/html; charset=ISO-8859-1 Set-Cookie: foo=bar Content-Length: 113 Connection: close <html> <head> <title>Hello, World!</title> </head> <body bgcolor="white"> <h1>Hello, World!</h1> </body> </html> -- To unsubscribe, e-mail: <mailto:tomcat-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-dev-help@;jakarta.apache.org>