Printing All Headers:
Internet Explorer Result
39
Servlets
www.corewebprogramming.com
Common HTTP 1.1 Request
Headers
Accept
Indicates MIME types browser can handle
Can send different content to different clients
Accept Encoding
Indicates encodings (e.g., gzip) browser can handle
See following example
Authorization
User identification for password protected pages.
Instead of HTTP authorization, use HTML forms to send
username/password. Store in session object.
For details on programming security manually and
using web.xml to tell the server to enforce security
automatically, see More Servlets and JavaServer
Pages.
40
Servlets
www.corewebprogramming.com
20