You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Federico Fernandez Cruz <fe...@dilmun.ls.fi.upm.es> on 2003/12/12 10:57:47 UTC
Apache SSL Variables
Hi!
How can I get the Apache SSL variables in Tomcat?
I am trying this:
<%
out.println("Is secure = " + request.isSecure() + "<br>");
Enumeration e = request.getHeaderNames();
while (e.hasMoreElements()) {
String header = (String) e.nextElement();
String value = request.getHeader(header);
out.println(header + " = " + value + "<br>");
}
e = request.getAttributeNames();
while (e.hasMoreElements()) {
String header = (String) e.nextElement();
String value = request.getHeader(header);
out.println(header + " = " + value + "<br>");
}
%>
But all I get is this:
Is secure = true
host = thorin.criptolab.add.es
user-agent = Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.5)
Gecko/20031007
accept =
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
accept-language = en-us,en;q=0.5
accept-encoding = gzip,deflate
accept-charset = ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive = 300
connection = keep-alive
cookie = JSESSIONID=9FCB888C8B2BBB45D125B2BF86B34465
Cache-Control = max-age=0
content-length = 0
Is there any option that I should set in JK configuration?
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org