Re: AW: AW: HELP! Configuring HTTP-headers per mime type?

2002-09-10 Thread Gili
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

AW: AW: AW: HELP! Configuring HTTP-headers per mime type?

2002-09-10 Thread Ralph Einfeldt
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

Re: AW: AW: AW: HELP! Configuring HTTP-headers per mime type?

2002-09-10 Thread Gili
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

RE: AW: AW: AW: HELP! Configuring HTTP-headers per mime type?

2002-09-10 Thread Cox, Charlie
-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

HELP! Configuring HTTP-headers per mime type?

2002-09-09 Thread Gili
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

??? Bug in Tomcat Response Headers ???

2002-08-09 Thread Tony LaPaso
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

RE: Getting USERNAME/PASSWORD from HTTP headers

2002-05-24 Thread Oscar Jiménez Ribera
request.getUserPrincipal().getName() if you use an auth-method -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Getting USERNAME/PASSWORD from HTTP headers

2002-05-23 Thread Donie Kelly
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]

Re: Getting USERNAME/PASSWORD from HTTP headers

2002-05-23 Thread Phillip Morelock
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

RE: Getting USERNAME/PASSWORD from HTTP headers

2002-05-23 Thread Donie Kelly
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

RE: Getting USERNAME/PASSWORD from HTTP headers

2002-05-23 Thread Lloyd Meinholz
: 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

Re: Getting USERNAME/PASSWORD from HTTP headers

2002-05-23 Thread Phillip Morelock
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

RE: Getting USERNAME/PASSWORD from HTTP headers

2002-05-23 Thread Donie Kelly
/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

Re: Getting USERNAME/PASSWORD from HTTP headers

2002-05-23 Thread Phillip Morelock
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

RE: Getting USERNAME/PASSWORD from HTTP headers

2002-05-23 Thread Donie Kelly
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

Re: answer: HTTP authentication headers behavior expectations

2002-04-24 Thread rsequeira
. 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

answer: HTTP authentication headers behavior expectations

2002-04-23 Thread Phillip Morelock
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

Re: answer: HTTP authentication headers behavior expectations

2002-04-23 Thread bm
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

Request.getHeader(String) and multiple headers with the same name...

2002-02-20 Thread Dr. Evil
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

RE: Request.getHeader(String) and multiple headers with the same name...

2002-02-20 Thread Martin Sandiford
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

ajp12[1]: cannot scan servlet headers (500)

2001-08-09 Thread Singh, Rakesh
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

RE: ajp12[1]: cannot scan servlet headers (500)

2001-08-09 Thread Martin van den Bemt
: 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

Servlet with individual Http Headers

2001-07-21 Thread Torsten Glunde
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

Prefix subject headers in Tomcat list?

2001-07-01 Thread pete
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

Re: Prefix subject headers in Tomcat list?

2001-07-01 Thread Tim O'Neil
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

Re: Prefix subject headers in Tomcat list?

2001-07-01 Thread pete
: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

Re: Prefix subject headers in Tomcat list?

2001-07-01 Thread Vinay Menon
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

Re: Prefix subject headers in Tomcat list?

2001-07-01 Thread Tim O'Neil
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

RE: Prefix subject headers in Tomcat list?

2001-07-01 Thread Michael Wentzel
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

Re: Prefix subject headers in Tomcat list?

2001-07-01 Thread Joseph A. Noble
] ' 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

ajp12[1]: cannot scan servlet headers

2001-06-19 Thread Carsten Elshoff
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

extension headers and SSL

2001-04-20 Thread Thad Humphries
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

RE: Logging request/response headers

2001-03-16 Thread Todd Carmichael
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

Logging request/response headers

2001-03-13 Thread DONNIE HALE
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

Re: Logging request/response headers

2001-03-13 Thread Craig R. McClanahan
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

HTTP Headers

2001-02-06 Thread Shai Bentin
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]

Re: HTTP Headers

2001-02-06 Thread Craig R. McClanahan
. 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

Multiple Set-Cookie headers ignored?

2001-01-17 Thread Jason Pell
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

RE: HTTP Headers

2001-01-06 Thread Christian Mallwitz
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

RE: HTTP Headers

2001-01-06 Thread Michael Wentzel
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

Q: HTTP Headers

2001-01-03 Thread Michael Wentzel
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

duplicating http-headers?

2000-11-29 Thread Benedikt Eric Heinen
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

RE: headers, cookies, redirect

2000-11-17 Thread rwaldhof
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

re: headers, cookies, redirect

2000-11-17 Thread Michael McCormick
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: %

RE: headers, cookies, redirect

2000-11-17 Thread Michael McCormick
seems like sendRedirect resets the HTTP headers.

Re: headers, cookies, redirect

2000-11-17 Thread Craig R. McClanahan
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

modifying response headers

2000-11-07 Thread romain
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

Premature end of script headers?

2000-11-06 Thread David Knaack
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

Apjv13 garbling headers

2000-11-03 Thread John Bodenstein
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:

<    1   2