Hello group:
Here's a point that confused me a bit, but I think I understand now. HttpServletRequest.getHeader(
String n) returns the first header of name "n" and HttpServletRequest.getHeaders(String n) returns all the headers of name "n" as an Enumeration.
What confused me was that I thought "multiple values" meant something like:
accept: text/html, image/gif
value1 = text/html
value2 = image/gif
But when I tried this out I got the whole string "text/html, image/gif" when calling getHeader("accept"). OK, so I figure that "multiple values" would then be:
accept: text/html
accept: image/gif
Now, my question is: when does the browser send its request in this form?