Meaningless Drivel is fun!
The moose likes Servlets and the fly likes Expect header Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Expect header" Watch "Expect header" New topic

Expect header

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
hi all
The status code in a range of 100-199 will make the client
should respond with some other action. the code set by the server ie with in (100-199) is based on the Expect request header.
i didn't get what the Expect request header meant by and also help me how to access it from the servlet and how to set the value from the client side.
Deepak Kaimal

Joined: Aug 30, 2005
Posts: 13
The expect header is defined by RFC2616 sec 14.20 here

You would retrieve the value in a servlet using request.getHeader().

You will find a description of the 1xx status codes and its relation with the Expect header here

Hope that helps.
I agree. Here's the link:
subject: Expect header
It's not a secret anymore!