This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
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

Win a copy of The Software Craftsman this week in the Agile forum!
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: 950

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
Have you tried LearnNowOnline?
subject: Headers