File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes http header and cookie case sensitive Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "http header and cookie case sensitive" Watch "http header and cookie case sensitive" New topic
Author

http header and cookie case sensitive

Tridib Samanta
Ranch Hand

Joined: Apr 28, 2004
Posts: 128
Hi All,
Can anybody tell me, whether the http headers and cookie names are case sensitive or not?


Thanks, Tridib
SCJP 1.4, SCWCD 1.4, SCBCD 5.0
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

No they are not


apigee, a better way to API!
Johan Pelgrim
Ranch Hand

Joined: Jul 07, 2003
Posts: 105

Yes they are!

I had to rename all Cookie references to Kookie, so you must rename all Kookie's back to Cookie again to be able to run this code! That was the only way I could post the code!

Try to run this servlet:

With this listKookies.jsp-page:

Output:


Johan Pelgrim, The Netherlands
SCJP 1.4, SCWCD 1.4, SCBCD 5.0
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

Oops, HTTP header names are case-insensitive.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: http header and cookie case sensitive
 
Similar Threads
EJB QL
DynaActionForm with ActionMapping
WA #1.....word association
header names are case sensitive or not
Garbage Collection