aspose file tools*
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
Author

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
Greenhorn

Joined: Aug 30, 2005
Posts: 13
Parameswaran,
The expect header is defined by RFC2616 sec 14.20 here http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.20

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 http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Hope that helps.
 
Consider Paul's rocket mass heater.
 
subject: Expect header