• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

http header and cookie case sensitive

 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can anybody tell me, whether the http headers and cookie names are case sensitive or not?
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No they are not
 
Johan Pelgrim
Ranch Hand
Posts: 105
Android Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops, HTTP header names are case-insensitive.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic