Header names lower case

2009-06-08 Thread Alexander Müller
Hi, I noticed the Tomcat implementation of HttpServletRequest.getHeaderNames() returns all header names in lower case. Is there any possibility to get them with their original case? Thanks, Alexander - To unsubscribe, e-mail

Re: Header names lower case

2009-06-08 Thread Alexander Müller
> Hi, > > I noticed the Tomcat implementation of HttpServletRequest.getHeaderNames() > returns all header names in lower case. Is there any possibility to get them > with their original case? Nobody having any idea about this behaviour? Thanks again, Alexander --

RE: Header names lower case

2009-06-08 Thread Alexander Müller
>> I noticed the Tomcat implementation of HttpServletRequest.getHeaderNames() >> returns all header names in lower case. Is there any possibility to >> get them with their original case? > > Want to give us a hint about the Tomcat version you're looking at? > > - Chuck I noticed it on Tomcat 5

Re: Header names lower case

2009-06-08 Thread Alexander Müller
> I can't answer your question but I'm curious: why is a HTTP header > name's case of any importance to you? > > RFC 2616 defines field names as case-insensitive. Relying on a header > field's case therefore seems at least non-portable to me. > Maybe you should elaborate what problem you are real

Re: Header names lower case

2009-06-08 Thread Alexander Müller
> The HTTP spec (HTTP/1.1, section 4.2: > http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html) states that HTTP > header field names are case-insensitive. > > You should not be relying on a particular caseification (?) of header > fields. > > Are you just interested in what the client sent? >

Re: Header names lower case

2009-06-08 Thread Alexander Müller
> "apparently"? Hm, in this case I'd double-check whether whatever problem > you're having is indeed caused by the case of the header names. Just to > make sure you're not barking at the wrong tree. > If the receiving party is really relying on the case of header names, > I'd ask them to fix their

RE: Header names lower case

2009-06-09 Thread Alexander Müller
> definitiv möglicherweise? > Martin Most likely ;), but what should the snippet tell me? Alexander - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Header names lower case

2009-06-09 Thread Alexander Müller
> Just to nitpick, there is no "proper capitalisation", since the RFC says > that headers are case-insensitive. I know, I referred to "proper" as in what the target machine expects. > Apart from that, I would offer the following subjective advice, in the > form of suggestions : > - it sounds l

Re: Header names lower case

2009-06-09 Thread Alexander Müller
> Is it only certain headers that are a problem, or is it all headers? > > If it's only some, you could specifically code these such that they are > handled with the desired capitalization, and pass everything else through. > > Or, if there are some rules to the capitalization requirements (like