>
>> On 01/06/2011 16:16, Marc Boorshtein wrote:
>>> So for some reason the addHeader is not doing anything
>>
>> I'm guessing you haven't looked at the source for this yet.
>>
>> org.apache.catalina.connector#addHeader(String,String) is a NOOP. It was
>> removed for Tomcat 7.
>>
>> You want:
>> re
To quote one of my favorite tv showswell there's your problem! Thanks,
I'll give this a try.
Marc
Sent from my iPad
On Jun 1, 2011, at 4:47 PM, Mark Thomas wrote:
> On 01/06/2011 16:16, Marc Boorshtein wrote:
>> So for some reason the addHeader is not doing anything
>
> I'm guessing yo
On 01/06/2011 16:16, Marc Boorshtein wrote:
> So for some reason the addHeader is not doing anything
I'm guessing you haven't looked at the source for this yet.
org.apache.catalina.connector#addHeader(String,String) is a NOOP. It was
removed for Tomcat 7.
You want:
request.getCoyoteRequest().get
> Hi, Marc-
>
> Is that a carriage return and/or line feed before the attribute name in the
> log file or just the formatting of the e-mail?
>
> -Terence Bandoian
>
just email formatting
-
To unsubscribe, e-mail: users-unsubscr..
>
> Can you try this:
>
> request.addHeader(attrib.getName(), val);
>
> logger.info("After added header: "
> + attrib.getName() + "="
> + request.getHeader(attrib.getName()));
>
> I wonder if the header value is being ignored because the request is
> frozen or someth
On 1:59 PM, Marc Boorshtein wrote:
Do you have any filters or other valves that might be wrapping the request and
choosing to ignore your extra headers?
No, the app is just a servlet that loops over all the headers and
cookies and generates a properties response
1) Show us your modified con
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Marc,
On 5/31/2011 5:27 PM, Marc Boorshtein wrote:
>> 2) Show us your Valve code. (It is simple, right?)
>
> Iterator attribs = lastmile.getAttributes().iterator();
> while (attribs.hasNext()) {
>
So I tried moving the configuraiton of the valve into the app's
META-INF/context.xml with no success. One thing I didn't mention that
is interesting is that the I do set the request's setUserPrincipal(..)
and that works.
Thanks
Marc
On Tue, May 31, 2011 at 5:27 PM, Marc Boorshtein wrote:
>>
>>
>
> Do you have any filters or other valves that might be wrapping the request
> and choosing to ignore your extra headers?
>
No, the app is just a servlet that loops over all the headers and
cookies and generates a properties response
> 1) Show us your modified conf/context.xml.
WE
> From: Marc Boorshtein [mailto:mboorsht...@gmail.com]
> Subject: Request headers created in valve don't make it to application
> The valve runs, the headers are added but they don't make it to
> the underlying web application.
Do you have any filters or other valves that
I've got a simple Valve that creates some headers running on Tomcat6
6.0.32 that creates headers by calling request.addHeader(...). The
valve is configured in tomcat_home/conf/context.xml. The valve runs,
the headers are added but they don't make it to the underlying web
application. Am I missin
11 matches
Mail list logo