File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Headers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Headers" Watch "Headers" New topic


Vineela Devi
Ranch Hand

Joined: Dec 20, 2003
Posts: 191
Hi All,

In setHeader(String name,String value)is the name CaseSensitive?I mean to ask is response.setHeader("test","SCWCD") will be same as response.setHeader("TEST","SCWCD")?

Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 951

I do not think the headers are case sencetive. Both are the same.

Header names are not case sensitive, but are traditionally
written with the first letter of each word capitalized.

[ November 17, 2005: Message edited by: Narendra Dhande ]

Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
I agree. Here's the link:
subject: Headers
It's not a secret anymore!