This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Headers" Watch "Headers" New topic
Author

Headers

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")?

Regards,
Vineela
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hi,

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.

Thanks
[ 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
 
Consider Paul's rocket mass heater.
 
subject: Headers
 
Similar Threads
SCWCD Exam Simulator
For SCWCD
Hints for SCWCD
SCWCD
SCWCD mock questions II