27
Netprog 2002  -  HTTP
Getting HTTP
Cookies
•The browser sends each cookie as a header:
•Cookie: prefs=nofrms
•Cookie: Java=OK
•The Web server reads the cookies from the headers.  CGI and servlets pass the cookies via environment variables or via the HttpServletRequest getCookies() method (which returns an array of Cookies).