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
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
Message-
From: Steven J.Owens [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 10:10 PM
To: Tomcat Users List
Subject: Re: adding HTTP headers for all responses in web application
On Wed, Oct 20, 2004 at 11:07:58AM -0400, Ben Souther wrote:
Search the archives, I believe Tim Funk
:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 10:10 PM
To: Tomcat Users List
Subject: Re: adding HTTP headers for all responses in web
application
On Wed, Oct 20, 2004 at 11:07:58AM -0400, Ben Souther wrote:
Search the archives, I believe Tim Funk has actually written and
published
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
On Wed, Oct 20, 2004 at 11:07:58AM -0400, Ben Souther wrote:
Search the archives, I believe Tim Funk has actually written and
published one Not sure though.
It's pretty straight-forward. This is the first filter I ever
coded, it was a snap. I make no guarantees that the particular
- 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 problem I'm facing is that I have MSWord (*.doc) files in a webapp that required
basic auth to access. The problem I've come across is that when downloading (viewing)
the files in IE, word can't find the file (it's not cached
http://support.microsoft.com/?kbid=317208). I've checked out 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
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
Hi,
CONFIGURATION
-
We have a bit complex configuration.
App Server:Tomcat 4.1.24
Web server(internal):Apache 2.0.40 + mod_jk 1.2.3 + Linux RH9
A reverse proxy(external):Apache 2.0.40 + Linux RH9
Our organization is behind a firewall, so we need an external web
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
I recently switched from Tomcat 4.0.3 to 4.1.24, and now I'm seeing
something unexpected: When Tomcat 4.1.24 returns valid content, the HTTP
header looks like
HTTP/1.1 200
while Tomcat 4.0.3 returns the normal
HTTP/1.1 200 OK
Note that Tomcat is plugged into Apache (I'm not using the catalina
This is a known issue. See
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14292 for more details.
Jim Michael [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I recently switched from Tomcat 4.0.3 to 4.1.24, and now I'm seeing
something unexpected: When Tomcat 4.1.24 returns valid
no-cache http headers
I've found in previouse discussions that no-cache feature was added on purpose to
avoid possible security problems.
I was told to use JBeans to maintain on server site JSP state.
There is no way to switch the feature of.
For my current project (intranet application) I just
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
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
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
On Tue, 10 Sep 2002 14:10:14 +0200, Ralph Einfeldt wrote:
To do that for other files you can implement a servlet
filter that sets the header with the given code.
And how do you tell Tomcat to tell that filter for that mime type?
Gili
--
To unsubscribe, e-mail: mailto:[EMAIL
too :} )
-Ursprüngliche Nachricht-
Von: Gili [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 10. September 2002 15:27
An: Ralph Einfeldt; Tomcat Users List
Betreff: Re: AW: AW: HELP! Configuring HTTP-headers per mime type?
And how do you tell Tomcat to tell that filter
On Tue, 10 Sep 2002 16:27:37 +0200, Ralph Einfeldt wrote:
The filter would be more general.
Define a filter that is triggered for every request.
In the filter set the header depending on the kind
of object that is requested. (The simple solution:
map extensions to mime types. What's good for
-Original Message-
From: Gili [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 10:39 AM
To: Ralph Einfeldt; Tomcat Users List
Subject: Re: AW: AW: AW: HELP! Configuring HTTP-headers per mime type?
On Tue, 10 Sep 2002 16:27:37 +0200, Ralph Einfeldt wrote
Hi,
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?
Thanks,
Gili
request.getUserPrincipal().getName()
if you use an auth-method
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi all
How do I get the username and password from the http authentication
headers...
Thanks
Donie
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
request.getHeader()
see the documentation for HttpServletRequest
On 5/23/02 12:27 PM, Donie Kelly [EMAIL PROTECTED] wrote:
Hi all
How do I get the username and password from the http authentication
headers...
Thanks
Donie
--
To unsubscribe, e-mail: mailto:[EMAIL
That's grand but I then have to base64 decode the result. I was hoping there
was a nice way ;)
Donie
-Original Message-
From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2002 20:38
To: Tomcat Users List
Subject:Re: Getting USERNAME/PASSWORD from HTTP
: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 3:35 PM
To: 'Tomcat Users List'
Subject: RE: Getting USERNAME/PASSWORD from HTTP headers
That's grand but I then have to base64 decode the result. I
was hoping there
was a nice way ;)
Donie
-Original Message
to base64 decode the result. I was hoping there
was a nice way ;)
Donie
-Original Message-
From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
Sent:23 May 2002 20:38
To:Tomcat Users List
Subject:Re: Getting USERNAME/PASSWORD from HTTP headers
request.getHeader
/PASSWORD from HTTP headers
This nice way is: request.getRemoteUser(). However, this doesn't seem to
work with mod_webapp, I haven't figured out why and no one had an
explanation when I asked. I'm using an ugly base64 decode as a work around
until I get another connector working. getRemoteUser() does
To:'Tomcat Users List'
Subject:RE: Getting USERNAME/PASSWORD from HTTP headers
This nice way is: request.getRemoteUser(). However, this doesn't seem to
work with mod_webapp, I haven't figured out why and no one had an
explanation when I asked. I'm using an ugly base64 decode as a work
OK fillup, I'll do that :(
Donie
-Original Message-
From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2002 21:27
To: Tomcat Users List
Subject:Re: Getting USERNAME/PASSWORD from HTTP headers
there have been several discussions here of problems
Hi
does anybody know if it is possible to send Http Headers with tomcat of
the form
Http/1.0 200 OK
Context-Type: text/html
Context-Type: multipart/mixed;boundary=ThisRandomString
and nothing else? As far I have already seen from tests and the source
it always sends
Http/1.1 200
Date: Sat
I monitored the response I got from tomcat, it seems that it does not return
a "Last-Modified" on it's http header. It also seems to ignore a request for
something "newer than" using the "If-Modified-Since" Request header. Can any
one shed some light on this? is there a special configuration in
Shai Bentin wrote:
I monitored the response I got from tomcat, it seems that it does not return
a "Last-Modified" on it's http header. It also seems to ignore a request for
something "newer than" using the "If-Modified-Since" Request header. Can any
one shed some light on this? is there a
depending on the content type you could use HTTP 1.1 chunked output and
create a little bit of dummy output for the browser to not time out ...
christian
-Original Message-
From: Michael Wentzel
To: '[EMAIL PROTECTED]'
Sent: 03.01.01 17:35
Subject: Q: HTTP Headers
I am having a problem
depending on the content type you could use HTTP 1.1 chunked
output and
create a little bit of dummy output for the browser to not
time out ...
christian
My content type is actually pdf/application and the api
we are using does not allow for a "rewrite" or prewrite to
the output in any
I am having a problem with an automated process in a
servlet taking too long and the browser times out.
Anyone know of a way to set the timeout limit in headers?
i.e. response.setHeader("TIMEOUT", "10"); ...
---
Michael Wentzel
Software Developer
Software As We Think
Hi there,
I have a problem with tomcat, which most likely is a setup
problem. But I can't find anything about it in the FAQ so far.
I set up Tomcat to run under apache-1.3.12 (Debian unstable
doesn't have a newer apache yet). I can access Tomcat directly,
which works fine. But accessing it
68 matches
Mail list logo