--- "Waldhoff, Rodney" <[EMAIL PROTECTED]> wrote:
> > the "header" stuff could be done simply 
> > with a case-insensitive comparision due 
> > to different containers using either 
> > "-" or "_" to seperate header names. 
> 
> But "User-Agent" and "User_Agent" are different headers (while
> "UsEr-AgEnT",
> "USER-AGENT", and "user-agent" are the the same) per the HTTP spec,
> yes?  If
> the container is sending "Content_Length" when it means
> "Content-Length",
> that's a bug in the container, yes?

I've always considered "User-Agent" and "User_Agent" to be the same
header.  I've never checked any specs to see if the header should be
done one way or the other.  All I know is that there is *NO*
consistency between containers, thus I couldn't ever write
getHeader("User-Agent") and be certain that it will migrate well from
one container to another.  In fact, this is exactly the problem that
lead to this solution.

I hadn't read the Servlet spec closely enough to realize getHeader() is
supposed to be case-agnostic, otherwise I would have reported a bug
against the particular containers where it was a problem.  (I don't use
them anymore anyway).

Lance

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to