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
body
(i.e., the HTML) gets encoded as UTF-16 before being sent to the
client. So far, so good.
Here's the problem: The reponse headers generated from the
servlet *ALSO* get encoded as UTF-16, which, I believe is in
violation of the HTTP spec. In reading the HTTP spec, response
headers should
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
headers
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
: 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
there have been several discussions here of problems with getRemoteUser and
my only advice will be to repeat that you should just grab raw headers --
even if just for debugging. This has always worked for me quite well.
That code link I sent provides direct base64--String decoding.
fillup
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
. The
session is maintained between the browser and the Controller jsp/servlet.
And I guess I'll have the Controller jsp/servlet format the Authorization
header with other request headers when making any requests on behalf of a
browser.
Thanks.
RS
Phillip Morelock [EMAIL PROTECTED] on 04/23/2002 05:27
this is HTTP
AFAIK the only way a browser can send BASIC authentication credentials is:
1) you send them a 401 and the browser prompts the user
2) you format all your links as http://user:[EMAIL PROTECTED]/ but i am not
even sure if all browsers will correctly use this, at least in the fashion
Hi
Anyone is successful in doing this combination so far
windows2000 + apache 2.0.35 + tomcat 4.0.3 + SSL ( open + mod)
Since apache is saying 2.0.35 is the most stable one on windows
Reg
bm
Phillip Morelock wrote:
this is HTTP
AFAIK the only way a browser can send BASIC authentication
If you were designing a Web browser you probably wouldn't put in
multiple headers with the same name, because that might confuse all
kinds of servers. Unfortunately, not all Web browser designers have
thought along these lines, and so I am having to deal with a header
that looks like this:
GET
When I use Request.getHeader() on this thing, I only get the first
one, which is text/vnd.wap.wml, which doesn't help me know what kind
of images, etc, I can send to this lovely device.
Request.getHeaders() is probably what you want. It returns an
Enumeration that you can iterate over to
on Mapped Servlet engines (ajpv12://localhost:8007) I
get 500 Internal Server Error
The mod_jserv.log file gives the following :
(EMERGENCY) ajp12[1]: cannot scan servlet headers (500)
(ERROR) an error returned handling request via protocol ajpv12
(ERROR) an error returned handling request via
: Singh, Rakesh [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 10, 2001 12:05 AM
To: [EMAIL PROTECTED]
Subject: ajp12[1]: cannot scan servlet headers (500)
Hi Folks:
When I use the url http://localhost/jserv/ to test ApacheJserv
1.1.2 Status
I do see
ApacheJServ 1.1.2 Status
Welcome
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
Is it possible for the list admin to apply a '[tomcat-user] ' or similar
prefix to all mails sent from the mailing list?
This helps a lot in separating list traffic from other traffic.
Thanks
-Pete
At 03:12 PM 7/1/2001, you wrote:
Is it possible for the list admin to apply a '[tomcat-user] ' or similar
prefix to all mails sent from the mailing list?
This helps a lot in separating list traffic from other traffic.
My client allows filtering via one or all of the incoming mail
headers, I
:12 PM 7/1/2001, you wrote:
Is it possible for the list admin to apply a '[tomcat-user] ' or
similar prefix to all mails sent from the mailing list?
This helps a lot in separating list traffic from other traffic.
My client allows filtering via one or all of the incoming mail
headers, I
i use the filter where 'To:' is [EMAIL PROTECTED] Works!
Vinay
- Original Message -
From: pete [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 01, 2001 11:12 PM
Subject: Prefix subject headers in Tomcat list?
Is it possible for the list admin to apply a '[tomcat-user
At 04:03 PM 7/1/2001, you wrote:
It also helps to be able to see the mails from the tomcat list if they are
mixed in with the rest - i use several mail clients to read mail on my
IMAP server, and not all of them do automatic filtering.
Is there any good reason not to prefix tomcat-user mail
Is it possible for the list admin to apply a '[tomcat-user] '
or similar
prefix to all mails sent from the mailing list?
This helps a lot in separating list traffic from other traffic.
The to: addr is [EMAIL PROTECTED] you should be
able to filter on that perfectly fine.
---
Michael
] ' or
similar prefix to all mails sent from the mailing list?
This helps a lot in separating list traffic from other traffic.
My client allows filtering via one or all of the incoming mail
headers, I filter the tomcat mail list with the Any Recipient
header. I don't know that this header
find
the entry
[18/06/2001 12:06:07:994] (EMERGENCY) ajp12[1]: cannot scan servlet
headers (500)
[18/06/2001 12:06:07:994] (ERROR) an error returned handling request via
protocol ajpv12
Has anyone seen this problem before and knows how to solve it? Any help
is greatly appreciated.
Thanks
on XHTML
generated from JSPs, in other places on applets. Several portions of our
application uses HTTP headers to pass information between the JSPs and the
applets: The JSP will call
response.setHeader( "my-custom-header", someString );
and the applet gets this value
You could use the HTTPUtils.getRequestURL() to do it yourself... I am not
sure how well that performs/scales.
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 1:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Logging request/response headers
Is there any way to enable logging of the request and response headers in Tomcat
3.2.1? I see that jasper.log contains the requested URL as well as query parameters,
etc. But I could really use a trace of the actual inbound and outbound HTTP headers.
Thanks,
Donnie
On Tue, 13 Mar 2001, DONNIE HALE wrote:
Is there any way to enable logging of the request and response headers in Tomcat
3.2.1? I see that jasper.log contains the requested URL as well as query parameters,
etc. But I could really use a trace of the actual inbound and outbound HTTP headers
there a special configuration in tomcat that
makes it respond with complete headers, and makes tomcat respond to a
"If-Modified-Since" request.?
Shai
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
. Can any
one shed some light on this? is there a special configuration in tomcat that
makes it respond with complete headers, and makes tomcat respond to a
"If-Modified-Since" request.?
Are the requests you are making for static resources or for dynamically created
output from servlets (or JSP pages
I have a problem. I am using Tomcat 3.2/Apache 1.3.12 on Linux Redhat
6.2
Whenever I try to send more than one Set-Cookie: header I get
"ERROR: ERROR" instead.
The first Set-Cookie works the rest are replaced with ERROR: ERROR
Any help appreciated.
Log fragment from mod_jk.log
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
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
Title: RE: headers, cookies, redirect
Flip it around, try
%
response.sendRedirect(bar.jsp);
response.addCookie(new Cookie(baz,quux));
%
it seems like sendRedirect resets the HTTP headers.
-Original Message-
From: Michael McCormick [mailto:[EMAIL PROTECTED]]
Sent: Friday
I'm not particularly grounded in web development, so this may
not be specific to Tomcat. I'm hoping someone can explain how
this works.
I can get cookies sent back to the browser when performing a
redirect if I set them _after_ I issue the redirect. That is, if
I write:
%
seems like sendRedirect resets the HTTP headers.
write:
%
response.sendRedirect("bar.jsp");
response.addCookie(new Cookie("baz","quux"));
%
This should not work, because you're not allowed to modify the HTTP headers
after calling sendRedirect().
The fact that this works, and that the opposite order (which is t
Yo,
is there a clean way (without modifying source code) to modify the
response headers from tomcat?
right now, they give away to much information methinks:
Servlet-Engine: Tomcat Web Server/3.1 (JSP 1.1; Servlet 2.2; Java
1.2.2; Linux 2.2.15-4mdksmp i386; java.vendor=Sun Microsystems Inc
Howdy,
I'm getting an error in my tomcat-error log on every request that says
[...] Premature end of script headers: /servlets/xxx
What does that indicate?
Thanks
DK
I noticed a strange problem with a Apache/Tomcat configuration communicating
via mod_jk/apjv13. The HTTP "Authorization:"-Header, which my servlet
desperately needs, doesn't show up on the Tomcat side. If I dump all headers
that reach my servlet, I instead have
"accept-language:
101 - 149 of 149 matches
Mail list logo