Murach's Java Servlets and JSP

This chapter introduces the HTTP protocol and surveys some of the methods of the servlet API that you can use to work with the HTTP headers and status codes of HTTP requests and responses.

Chapter 15 How to work with HTTP requests and responses
An introduction to HTTP 438
An HTTP request and response 438
Common MIME types 440
Common HTTP request headers 442
Common HTTP status codes 444
Common HTTP response headers 446
How to work with the request 448
How to get request headers 448
How to display all request headers 450
The request headers for the IE and Netscape browsers 452
How to work with the response 454
How to set status codes 454
How to set response headers 454
Practical skills for working with HTTP 456
How to return a tab-delimited file as an Excel spreadsheet 456
How to control caching 456
How to encode the response with GZIP compression 458
How to require the File Download dialog box 460
t




Murach's Java Servlets and JSP

Learn more about this book

Add this book to your cart