tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Arbitrary headers
Date Tue, 06 Nov 2007 18:07:55 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gustavo,

Gustavo Noronha wrote:
> I want to have the HTTP server of Tomcat add arbitrary headers to every
> response. As an example, I'd like every request to have in its response, for
> instance:
> 
> X-MyOwnHeader = lala
> 
> Something like Apache HTTPD's mod_headers. Is there a way to do that?

Write a servlet filter and attach the headers to all responses.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHMK179CaO5/Lv0PARAhVLAJ91G8PS2cnf1nwzlGDBfgeBlOmJZACfWR/2
fJULsbht1Xw7Q5iCKCo/EI8=
=q9os
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message