Re: socket connection within servlet to the same container

2006-11-14 Thread Dmitry Kandalov
Christopher Schultz-2 wrote: > > Try calling "flush" on your output stream, and possibly even closing it > if you have to. > > Any reason not to use java.net.URLConnection for this? > No, reason. It was just very simple and sockets seemed to be appropriate. -- View this message in context:

socket connection within servlet to the same container

2006-11-12 Thread Dmitry Kandalov
Say I have code like this: protected void doPost( HttpServletRequest request, HttpServletResponse response ) { ... String requestString = "GET " + page + " HTTP/1.1"; String headersString = "\r\nHost: " + request.getServerName() + "\r\nCookie