tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanks Wang (hanwan)" <>
Subject How to modify default tomcat http header property "Server: Apache-Coyote/1.1" ?
Date Fri, 22 Feb 2008 06:23:04 GMT
Hi all,
I deployed a servlet in Tomcat which response to all http post requests,
and I composed the response data by HttpServletResponse object.
But I found Tomcat will generate a default http header property in the
response: "Server: Apache-Coyote/1.1"
So my question is : Is there a way to change the http header value? eg:
change it to "Server: For-Test"
I try to use below method: 
response.setHeader("Server", "For-Test");
Then the http header becomes to:
Server: Apache-Coyote/1.1
Server: For-test
But the "Apache-Coyote/1.1" still there.  So how can I delete it or
modify it? Thanks!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message