Page 1 of 1

About Question enthuware.jwpv6.2.733 :

Posted: Mon Aug 06, 2012 11:04 am
by Presi Priya
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?

Re: About Question enthuware.jwpv6.2.733 :

Posted: Tue Aug 07, 2012 1:44 am
by admin
This is one header with multiple values. No, the browsers don't get confused because they are programmed to handle this case.