RE: tomcat detecting http header

2005-09-20 Thread Jason Bell
Hi, When developing web app code I tend to enumerate on the headers coming in. Have a look at: public java.util.Enumeration getHeaderNames(); So: // get the header names Enumeration ee = request.getHeaderNames(); // then iterate through them for(;ee.hasMoreElements();){ String header =

Re: tomcat detecting http header

2005-09-20 Thread Jon Wingfield
Of course, you could just call request.getRemoteAddr(); Tomcat is a Servlet Specification container. You don't get headers with CGI naming conventions. Check out the api documentation: http://java.sun.com/j2ee/1.4/docs/api/index.html It's the packages starting with javax.servlet that will be

RE: tomcat detecting http header

2005-09-20 Thread Murugan Pal
You can also add this routine within a code block at higher trace levels. This way you can turn on this routine for debugging or logging purposes and don't have to incur additional overheads during runtime. Murugan Hi, When developing web app code I tend to enumerate on the headers