tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanks Wang (hanwan)" <>
Subject RE: Reorder the http header generated by tomcat
Date Wed, 05 Mar 2008 06:07:24 GMT
Hi all,

I'd like to describe my problem clearer:

Currently the http header which generated by Tomcat is something like:

Accept-Ranges: none
Content-Type: text/plain
Server: test123

Can I change it into below order?
Server: test123
Accept-Ranges: none
Content-Type: text/plain


-----Original Message-----
From: Hanks Wang (hanwan) 
Sent: Wednesday, March 05, 2008 10:12 AM
To: Tomcat Developers List
Subject: Reorder the http header generate by tomcat

Hi all,
I edit server.xml as:
<Connector server="test123" port="8080"...>
It will add "server" item in my response header, so now the http header
is something like:
Cache-Control: no-store, no-cache, must-revalidate
Accept-Ranges: none
Content-Type: text/plain
Connection: close
Server: test123
The "Server" is put to the last item of the http header.
So my question is : Is there a way to reorder the http header instead of
having tomcat formulate them?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message