Hi,
"java.lang.String getHeader(java.lang.String name)
Returns the value of the specified request header as a String. If the request did not include a header of the specified name, this method returns null. If there are multiple headers with the same name, this method returns the first head in the request. The header name is case insensitive. You can use this method with any request header."
So according to the question,
"Accept: image/gif, image/jpeg, image/bmp"
do I call this a header with multiple values or multiple headers with same name.
If we provide header with multiple values, like given in the question, doesn't the browser get confused?
About Question enthuware.jwpv6.2.733 :
Moderator: admin
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.733 :
This is one header with multiple values. No, the browsers don't get confused because they are programmed to handle this case.
Who is online
Users browsing this forum: No registered users and 1 guest