core
Web
programming
Handling the Client Request:
HTTP Request Headers
33
2001 2003 Marty Hall, Larry Brown http://www.corewebprogramming.com
Handling the Client Request:
HTTP Request Headers
Example HTTP 1.1 Request
GET /search?keywords=servlets+jsp HTTP/1.1
Accept: image/gif, image/jpg, */*
Accept Encoding: gzip
Connection: Keep Alive
Cookie: userID=id456578
Host: www.somebookstore.com
Referer: http://www.somebookstore.com/findbooks.html
User Agent: Mozilla/4.7 [en] (Win98; U)
It shouldn t take a rocket scientist to realize
you need to understand HTTP to be
effective with servlets or JSP
34
Servlets
www.corewebprogramming.com
17