Hello all
Is there any posibility of logging the HTTP headers ?
Thx.
Cristi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Cristi,
they are in the Apache Logfile anyway, why do you want to log them again?
Bernhard
-Ursprüngliche Nachricht-
Von: cristi [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 2. Juni 2005 10:04
An: Tomcat Users List
Betreff: Logging the HTTP headers
Hello all
Am Donnerstag, 2. Juni 2005 10:03 schrieb cristi:
Hello all
Is there any posibility of logging the HTTP headers ?
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Request%20Dumper%20Valve
Regards
mks
On 6/3/05, Markus Schönhaber [EMAIL PROTECTED] wrote:
Am Donnerstag, 2. Juni 2005 10:03 schrieb cristi:
Hello all
Is there any posibility of logging the HTTP headers ?
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Request%20Dumper%20Valve
What about a Filter
them again?
Bernhard
-Ursprüngliche Nachricht-
Von: cristi [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 2. Juni 2005 10:04
An: Tomcat Users List
Betreff: Logging the HTTP headers
Hello all
Is there any posibility of logging the HTTP headers ?
Thx.
Cristi
Am Freitag, 3. Juni 2005 11:46 schrieb Anto Paul:
On 6/3/05, Markus Schönhaber [EMAIL PROTECTED] wrote:
Am Donnerstag, 2. Juni 2005 10:03 schrieb cristi:
Hello all
Is there any posibility of logging the HTTP headers ?
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config
thank you all of you.
cristi
You can also just watch these on the fly with browser plug-ins:
IE: google for ieHTTPHeaders
Mozilla/FireFox: http://livehttpheaders.mozdev.org/index.html
Hello all
Is there any posibility of logging the HTTP headers ?
Thx.
Cristi
Hi All,
Just a 'silly question,' I downloaded a HTTP sniffing program because
I want to get use to reading header information. I'm using Apache Tomcat, on
a localhost configuration for development purposes. The sniffing program I
downloaded from 'EffeTech,' in the FAQ section states, 'Due
From: Marco Mastrocinque [mailto:[EMAIL PROTECTED]
'Due to the mechanism
of Windows operating system, a sniffer can't capture local-to-local
traffic.' Please note I found this out the hard way! The
question I have is how do you do it?
You use another physical machine to send the requests,
If you only want to see the http headers, a tiny plugin for IE may help you:
http://www.blunck.info/iehttpheaders.html
On Mon, 21 Feb 2005 21:08:53 +1100, Marco Mastrocinque
[EMAIL PROTECTED] wrote:
Hi All,
Just a 'silly question,' I downloaded a HTTP sniffing program because
I want
[mailto:[EMAIL PROTECTED]
Sent: 21 February 2005 10:09
To: tomcat-user@jakarta.apache.org
Subject: Sniffing loaclhost traffic for HHTP headers
Hi All,
Just a 'silly question,' I downloaded a HTTP sniffing program
because
I want to get use to reading header information. I'm using
-Original Message-
From: Marco Mastrocinque
[mailto:[EMAIL PROTECTED]
Sent: 21 February 2005 10:09
To: tomcat-user@jakarta.apache.org
Subject: Sniffing loaclhost traffic for HHTP
headers
Hi All,
Just a 'silly question,' I downloaded a
HTTP sniffing program
You should be able to telnet to the Tomcat server and send it a request.
The response including headers will be visible in your telnet session.
Subir
-Original Message-
From: Marco Mastrocinque [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 2:09 AM
To: tomcat-user
If your pattern is /*.jsp, then your filter applies to all jsps.
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]
Sent: October 22, 2004 1:19 AM
To: Tomcat Users List
Subject: RE: adding HTTP headers for all responses in web application
question: will the filter applied
Actually the pattern is *.jsp - not /*.jsp
-Tim
Phillip Qin wrote:
If your pattern is /*.jsp, then your filter applies to all jsps.
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]
Sent: October 22, 2004 1:19 AM
To: Tomcat Users List
Subject: RE: adding HTTP headers for all
To: Tomcat Users List
Subject: Re: adding HTTP headers for all responses in web application
Actually the pattern is *.jsp - not /*.jsp
-Tim
Phillip Qin wrote:
If your pattern is /*.jsp, then your filter applies to all jsps.
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]
Sent
-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Friday, October 22, 2004 11:18 AM
To: 'Tomcat Users List'
Subject: RE: adding HTTP headers for all responses in web application
Why this url-pattern is always un-nature? I always have difficulties
reading filter section in servlet
release of servlet, i.e. servlet xp?
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: October 22, 2004 10:32 AM
To: Tomcat Users List
Subject: Re: adding HTTP headers for all responses in web application
Actually the pattern is *.jsp - not /*.jsp
-Tim
Phillip Qin wrote
Hi,
There are filters that ship with Tomcat's example webapp. Beside being
the best how-to possible, there's actually one that does what you want
for character encoding, so it's a trivial copy/paste to suit it to
whatever headers you need.
Yoav Shapira http://www.yoavshapira.com
-Original
example webapp. Beside
being
the best how-to possible, there's actually one that does what you
want
for character encoding, so it's a trivial copy/paste to suit it to
whatever headers you need.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Steven J.Owens [mailto
Hi,
It there any easy way to add few HTTP headers to ALL responses within
one web application? What I'm looking is to prevent caching of error
pages. I thought it will be greate to add those header:
CacheControl = no-cache
Pragma, no-cache
Expires = -1
to all my servlet/JSP responces
Have you thought of filter?
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]
Sent: October 20, 2004 10:40 AM
To: [EMAIL PROTECTED]
Subject: adding HTTP headers for all responses in web application
Hi,
It there any easy way to add few HTTP headers to ALL responses within one
web
Sound like a good idea! Can you please point to a good filters-HOWTO?
--- Phillip Qin [EMAIL PROTECTED] wrote:
Have you thought of filter?
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]
Sent: October 20, 2004 10:40 AM
To: [EMAIL PROTECTED]
Subject: adding HTTP headers
Both servlet spec 2.3 and book more servlets and javaserver pages are good
references. Or search mail archive. It's easy to implement.
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]
Sent: October 20, 2004 10:57 AM
To: 'Tomcat Users List'
Subject: RE: adding HTTP headers for all
?
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]
Sent: October 20, 2004 10:40 AM
To: [EMAIL PROTECTED]
Subject: adding HTTP headers for all responses in web application
Hi,
It there any easy way to add few HTTP headers to ALL responses
within one
web application
headers are exactly what you need (browser caching is annoyingly
difficult to disable).
-config-
filter
filter-nameNoCacheFilter/filter-name
filter-classclass.path.to.NoCacheFilter/filter-class
/filter
Using filter to set the headers works. Thanks for the help.
rgds
Antony Paul
On Thu, 7 Oct 2004 19:20:18 +0530, Antony Paul [EMAIL PROTECTED] wrote:
Ok. I will test by adding a header using a Filter to all js requests.
I thought I have to interpret every js request and read the file from
Hi all,
How to add no-cache header to a javascript file which is set in the html as
script src=scripts/hello.js/script. This comes in an HTML page.
I set the meta tags for cache control. But no use.
Uses IE 6.0, Tomcat 4.1.30.
rgds
Anto Paul
Antony Paul wrote:
How to add no-cache header to a javascript file which is set in the html as
script src=scripts/hello.js/script.
Either make your JavaScript file a JSP, or use a Filter. (The first
is quicker, the second's more scalable if you might want to do this
with multiple JS files...)
I used JSP. How to use filter ?
rgds
Antony Paul
On Thu, 07 Oct 2004 04:44:28 -0700, Hassan Schroeder
[EMAIL PROTECTED] wrote:
Antony Paul wrote:
How to add no-cache header to a javascript file which is set in the html as
script src=scripts/hello.js/script.
Either make your
Antony Paul wrote:
I used JSP. How to use filter ?
1) read Chapter 6 of the Servlet spec, and
2) look at the examples included with Tomcat -- there's several
Filters there for dissection :-)
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design === (+1)
Hi,
I have the following question:
If I set response headers in one servlet/JSP and then forward the request to another
servlet/JSP, will the response generated from the target servlet/JSP contain the
headers from the first servlet/JSP?
My thought prior to testing was it could work, but tests
Read servlet spec or books. In short, extend filter, then your custom class
add header, finally map your in web.xml.
-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: October 7, 2004 7:52 AM
To: Tomcat Users List
Subject: Re: [OT] Setting no-cache headers
, extend filter, then your custom class
add header, finally map your in web.xml.
-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: October 7, 2004 7:52 AM
To: Tomcat Users List
Subject: Re: [OT] Setting no-cache headers for javascript
I used JSP. How to use
I'm sure this is simple, I just can't figure out how to do it. I want to
change the name (type) of the server that gets returned in the HTTP
response header. Currently it is returning Apache-Coyote XX, but I'd rather
it return something more meaningful for me. How do I do this?
I grepped
PROTECTED]
Subject: Changing the server name in response headers
I'm sure this is simple, I just can't figure out how to do
it. I want to
change the name (type) of the server that gets returned in the HTTP
response header. Currently it is returning Apache-Coyote XX,
but I'd rather
, 2004 9:02 PM
To: [EMAIL PROTECTED]
Subject: Changing the server name in response headers
I'm sure this is simple, I just can't figure out how to do
it. I want to
change the name (type) of the server that gets returned in the HTTP
response header. Currently it is returning Apache-Coyote XX
that
was previously set? I am using Tomcat 5.0.24.
Sort of. What was happening was that two server headers were being sent.
Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Original Message -
From: Jon Wingfield [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, August 12, 2004 6:09 AM
Subject: Re: Tomcat 4.1.30 adding no-cache to http headers
Yep. Tomcat (reasonably) adds these headers when the requested url is
within a security constraint
Yep. Tomcat (reasonably) adds these headers when the requested url is
within a security constraint defined within the web.xml.
In all places on our site where pdf, excel, word docs etc can be
downloaded we have the following code:
final String userAgent = request.getHeader(user-agent
to http headers
Yep. Tomcat (reasonably) adds these headers when the requested url is
within a security constraint defined within the web.xml.
In all places on our site where pdf, excel, word docs etc can be
downloaded we have the following code:
final String userAgent = request.getHeader
the headers using wget
and it looks like tomcat is adding the Pragma and Cache-Control headers (which causes
the IE problem). Note that I'm running apache infront of tomcat.
[EMAIL PROTECTED] PVIMS]# wget -S http://username:[EMAIL
PROTECTED]/members/acclaim/PVIMS/Section 10.doc
--15:49:58-- http
anyway to check headers and get information other then just
Etag: W/18796-1089327349000
Last-Modified: Thu, 08 Jul 2004 22:55:49 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 18796
Date: Tue, 20 Jul 2004 12:04:20 GMT
Server: Apache-Coyote/1.1
and is Apache-Coyote/1.1 the Tomcat
Hi all
Using Tomcat 4.1.18 on Solaris 8.
Send a POST to tomcat with no Accept header and the
content type returned by the application is application/vnd.wap.mms-message
Now tomcat generates a HTTP 406 response to this case.
Is this correct? From the HTTP specification it says the
Is it possible to programmatically change the Server header?
[...]
Surely there is a way to alter the Server header of an HTTP
response, if only for security reasons. I can't be the only
person who wishes to do this. I would appreciate any
suggestions as to how this can be
The Server header is hardcoded into the Connectors. You can't remove/change
it without a PATCH/recompile to org.apache.coyote.http11.Constants
-Tim
Ian Stevens wrote:
Is it possible to programmatically change the Server header?
[...]
Surely there is a way to alter the Server header of an HTTP
The Server header is hardcoded into the Connectors. You can't
remove/change it without a PATCH/recompile to
org.apache.coyote.http11.Constants
That's certainly what I saw when looking at the source. There's no way
alter it using a javax.servlet.Filter and a
Unless there is a PATCH in bugzilla, then no.
-Tim
Ian Stevens wrote:
The Server header is hardcoded into the Connectors. You can't
remove/change it without a PATCH/recompile to
org.apache.coyote.http11.Constants
That's certainly what I saw when looking at the source. There's no way
alter it
Unless there is a PATCH in bugzilla, then no.
OK. Thanks for your help, Tim.
Ian.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Is it possible to programmatically change the Server header?
Barring that, is it possible to set a Server header for a servlet
within its web.xml file? My least preferred method is to change the
Server
header within Tomcat's server.xml file.
I was thinking that a javax.servlet.Filter
to setHeader() in Tomcat source, specifically HttpConnector, be
wrapped with Filter objects? or does that only apply to calls within servlet
source? How can I wrap all calls to setHeader()?
thanks,
Ian.
/**
* The javax.servlet.Filter to set HTTP headers to null.
*/
public class HttpRemoveHeaderFilter
Eric Jacobson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Bill,
I have been trying to trace down a problem with an application I am
building
on top of Tomcat 4.1. The problem I was encountering was that my HTTP
response headers were being returned to the client using UTF-8
Bill,
I have been trying to trace down a problem with an application I am building
on top of Tomcat 4.1. The problem I was encountering was that my HTTP
response headers were being returned to the client using UTF-8 encoding.
My understanding of RFC 2068 is that all request and response headers
suggestions noted above by microsoft, removing some content
headers, however that still doesn't work. The web app sits behind SSL and
if i revert the information to a non-ssl i loose all the session info.
is there a way in tomcat that session info is duplicated between
ssl/non-ssl
On Tue, Apr 13, 2004 at 07:14:26AM -0400, Alex wrote:
: is there a way in tomcat that session info is duplicated between
: ssl/non-ssl ?
This has been discussed recently on the list -- please check the
archives.
A search for session hijacking in the message body should give you the
whats and
What is the magic set of non-SSL request and/or response headers for a
security-constrained servlet to download a pdf stream in IE 6 SP1?
Netscape 7.1 works fine as a client, so I'm certain there is something I'm
missing that is particular to IE.
Thanks,
Derrick
This electronic
Setting Cache-control to private resolves the problem for IE 6 SP1.
-Original Message-
From: Koes, Derrick
Sent: Monday, March 22, 2004 9:51 AM
To: '[EMAIL PROTECTED]'
Subject: request/response headers
What is the magic set of non-SSL request and/or response headers for a
security
Hello everyone,
is there an easy way to set HTTP headers (specific: cache-control) in
Tomcat 5 for static resources like CSS files or GIF pictures?
By default, Tomcat does not seem to touch these headers.
I know that I can set headers from Servlets/JSPs, but that does not help
in the case
Andreas Schildbach wrote, On 3/14/2004 12:48 PM:
is there an easy way to set HTTP headers (specific: cache-control) in
Tomcat 5 for static resources like CSS files or GIF pictures?
By default, Tomcat does not seem to touch these headers.
I know that I can set headers from Servlets/JSPs
Dear folks,
How could i dump HTTP Response and Request headers.
Im using Apache 1.3 and Tomcat 4.0 MOD_JK.
For Mozilla you have a tool called Live HTTP Headers
(http://livehttpheaders.mozdev.org/) that does exactly
what you want. You install it into Mozilla and it
shows you the headers
On 03/12/2004 06:05 AM mganesh wrote:
Dear folks,
How could i dump HTTP Response and Request headers.
Im using Apache 1.3 and Tomcat 4.0 MOD_JK.
Hi Ganesh,
if you are talking client-side, then there is an excellent extension for
Firefox browser called HTTP headers. I expect there's something
, 2004 10:24 AM
To: Tomcat Users List
Subject: Re: Dump HTTP Request and Response Headers
Server-side, it's easy for request headers - you can getHeaders() to
obtain an Enumeration of them. But for the response headers,
it's only possible to see what they are if you already know what you
Dear folks,
How could i dump HTTP Response and Request headers.
Im using Apache 1.3 and Tomcat 4.0 MOD_JK.
Regards
Ganesh
Hi allJavamail generates a date in the format: Date: Tue, 20 Jan 2004 11:57:37 + (GMT)The spec below implies that the timezone is either a numeric offset or the timezone is specified like Date: Fri, 23 Jan 2004 11:57:24 GMTCan somebody clarify why javamail uses both forms?Extract from
Sorry guys, this was supposed to go to the JavaMail mailing list. Sorry.
-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 12:15
To: Tomcat Users List (E-mail)
Subject: rfc2822 clarification on date headers
Hi all
Javamail generates a date
was for a servlet and
try to pass the request down to the actual proxy part of the module.
HTTPExtensionProc would start up and would fail to get a name for a
worker. I found that odd. So I pulled up the source (for jk2) and saw
that the filter adds some HTTP headers to the request
On Fri, 16 Jan 2004 09:28:00 EST
Jeff Trout [EMAIL PROTECTED] wrote:
Note: After much more tinkering I discovered this problem goes away if
you install the isapi_redirect.dll at the site level, not server. Still
quite odd that on machine a it worked fine on the server level.
Maybe something
I'll take no answer to mean no one knows.
Are there any companies that support tomcat?
That could help with this problem?
On Tue, 29 Jul 2003, Holden Robbins wrote:
Better yet, has anyone successfully integrated Siteminder with IIS and
Tomcat?
On Mon, 28 Jul 2003, Holden Robbins
Better yet, has anyone successfully integrated Siteminder with IIS and
Tomcat?
On Mon, 28 Jul 2003, Holden Robbins wrote:
Hello,
Anyone know how to make the IIS-Tomcat connector pass data through shared
memory, as mentioned in the following post:
http://www.mail-archive.com/[EMAIL
Hello,
Anyone know how to make the IIS-Tomcat connector pass data through shared
memory, as mentioned in the following post:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg36732.html
Specificly, I'm running into the same problem as the original poster where
Siteminder header data is not
, that proxies
requests, they are not treated correctly. The browser shows http header
info (without interpreting it) followed by the html code of the pages. ??
The headers appear to be mangled by http reverse proxy.
Here is my reverse-proxy configuration (just in case...)
ProxyRequests
I'm using IIS + Tomcat 4.1.24 + JK2 isapi_redirector2.dll. Everything has
been working so far.
However, now I'm receiving HTTP headers containing a Content-Type that is
continued on another line, and isapi_redirector2.dll is broken. (Sending the
exact same request direct to Tomcat works fine
Thanks! Good info, but the interesting thing is that they claim this has
been fixed, when clearly it has not (as of 4.1.24). Does the bug need to
be re-submitted?
Jim
[EMAIL PROTECTED] 6/4/2003 9:40:13 PM
This is a known issue. See
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14292 for
The Fixed in the bug was applied to TC 5.x. It wasn't until after 4.1.24
was released that I realized that it hadn't been ported to TC 4.1.x. It has
since been ported in the CVS (get jakarta-tomcat-connectors with the target
coyote_10).
Please don't re-open the bug, since I'll just have to
monitoring
software, which looks for the entire HTTP/1.1 200 OK response, suddenly
said my site was down after upgrading Tomcat g)
Is there a setting in Tomcat 4.1.24 to make the response headers
normal again?
Any info appreciated.
Jim
P.S. If you don't follow and want to see what I'm talking about
upgrading Tomcat g)
Is there a setting in Tomcat 4.1.24 to make the response headers
normal again?
Any info appreciated.
Jim
P.S. If you don't follow and want to see what I'm talking about, browse
to http://www.chesterfield.mo.us/site/home.jsp and look at the header
to the browser with
absolutely no headers (at least from the perspective
of doing a View Source on the returned page). I
am setting headers including content type, length, and
disposition. Also, if I go directly to Tomcat using
its port #, the files come down the wire with the
headers and all
to the browser with
absolutely no headers (at least from the perspective
of doing a View Source on the returned page). I
am setting headers including content type, length, and
disposition. Also, if I go directly to Tomcat using
its port #, the files come down the wire with the
headers and all
Adam,
Your solution should work fine.
However, I consider this is a bug, and therefore I wondered if other people agree with
me on this point.
I used a simple Filter to work around the Tomcat bug;
/**
* pTitle: /p
* pDescription: Reset cache-control headers set by Tomcat.
* These headers
Hi all,
I encountered problems with the newer Tomcat 4 versions.
There are caching-headers set on the response, in case of URL's with security
constraints, which are not set in older Tomcat 4 versions versions.
This results in 2 things;
- The user is not able to use the back-button anymore
Is there any way to set request headers, i.e., an existing mod between
Apache and Tomcat,
which can set request headers to be decoded by a servlet?
Thanks,
Joel
This communication is for informational purposes only. It is not intended as
an offer or solicitation for the purchase or sale
See this thread:
http://marc.theaimsgroup.com/?l=tomcat-userm=104225249305524w=2
-Tim
[EMAIL PROTECTED] wrote:
Is there any way to set request headers, i.e., an existing mod between
Apache and Tomcat,
which can set request headers to be decoded by a servlet?
Thanks,
Joel
Jan 1970 00:00:00 GMT
I understand that this should be used when you are serving html so that
its not cached, however
I would like to remove these headers when I am serving images since they
should be cached.
But alas there is no clearHeader() only setHeader() in
HttpServletResponse.
How can I do
Is there a simple way to add HttpRequest headers from Tomcat to emulate
Entrust security?
When I add a header within a servlet, then forward the request to to a JSP,
the header appears to be stripped.
Thanks,
Joel
This communication is for informational purposes only. It is not intended
]:message=null
2003-01-13 16:53:48 RequestDumperValve[Standalone]: remoteUser=null
2003-01-13 16:53:48 RequestDumperValve[Standalone]: status=200
Notice that filter set the Vary and Content-Encoding headers for
the HTML file, but not for the JSP file. Obviously the filter
]: status=200
Notice that filter set the Vary and Content-Encoding headers for
the HTML file, but not for the JSP file. Obviously the filter is
generally working because it successfully compressed and set headers
for the HTML file. What makes JSP's and servlets different? Why
aren't the headers
On Mon, 13 Jan 2003, Jacob Kjome wrote:
Date: Mon, 13 Jan 2003 16:59:44 -0600
From: Jacob Kjome [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED],
Jacob Kjome [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: issue setting headers in a filter
I
[EMAIL PROTECTED]
Subject: issue setting headers in a filter
I brought this issue up previously in a question about a GZIP
servlet filter
which I had based on an example that was supposed to have worked
on
the Orion server. I still have gotten nowhere. The
curious thing is
that it works
Hi all,
I have a web application running within tomcat which serves both JSP
files and static GIF files. I need to set the cache-control headers on
the GIF files to specify Cache-Control: no-cache. This is easy to do
for the JSP files, but I can find no reference on how to do it for
static
Hi All,
Does anyone know how to set an HTTP Header on Tomcat, without using a
servlet?
Thanks
Matt
--
To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
, November 14, 2002 10:12 AM
To: [EMAIL PROTECTED]
Subject: Setting Http Headers on Tomcat
Hi All,
Does anyone know how to set an HTTP Header on Tomcat, without using a
servlet?
Thanks
Matt
--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e
Hi,
I'm trying to find a way to remove response headers from the default set
of response headers that Tomcat sends back to the browser with each
request. From my analysis here's what Tomcat sends back by default on
most requests:
HTTP/1.1 200 OK
Content-Type: text/html;ISO-8859-1
Date: Wed, 30
You can probably use a filter + a ResponseWrapper to modify the original
content.
Jake
At 10:39 PM 10/29/2002 -0500, you wrote:
Hi,
I'm trying to find a way to remove response headers from the default set
of response headers that Tomcat sends back to the browser with each
request. From my
On Tue, 29 Oct 2002, Alex Muc wrote:
Date: Tue, 29 Oct 2002 22:39:54 -0500
From: Alex Muc [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Removing Response Headers
Hi,
I'm trying to find a way to remove response headers from the default
Hi,
I want to write a filter for Tomcat 4.0.3 which should record all the
traffic.But I cannot find any way to question the values of the headers of
a response in my ResponseWrapper. Normal HttpServletResponse class doesn't
have any getter methods for headers. In the debugger I can see
which should record all the
traffic.But I cannot find any way to question the values of the headers of
a response in my ResponseWrapper. Normal HttpServletResponse class doesn't
have any getter methods for headers. In the debugger I can see
of the headers of
a response in my ResponseWrapper. Normal HttpServletResponse class doesn't
have any getter methods for headers. In the debugger I can see that there
is a org.apache.catalina.connector.HttpResponseFacade which implements (via
superclass) a org.apache.catalina.HttpResponse which has
I'd like to send out the following HTTP headers for all *.xml files
Content-Cache=maxage=3600 while for *.jsp it should be
Content-Cache=no-cache.
I know how to configure headers per mime type under Apache,
but how is this
done under Tomcat? *Can* it be done?
simple
That won't work. What you mentioned only works for JSP files, not XML or
HTML files. There has to be a way to specify headers externally from the file itself.
Gili
On Tue, 10 Sep 2002 10:04:38 +0200, Power-Netz \(Schwarz\) wrote:
I'd like to send out the following HTTP headers
! Configuring HTTP-headers per mime type?
That won't work. What you mentioned only works for JSP
files, not XML or
HTML files. There has to be a way to specify headers
externally from the file itself.
snip/
response.setHeader(Cache-Control,no-cache);
--
To unsubscribe, e-mail
1 - 100 of 149 matches
Mail list logo