Bjoern Hoehrmann schrieb:
* Julian Reschke wrote:
In particular, HTTP allows headers to be present with no value, and that
means something different than the absence of that header. Please do not
profile HTTP (where it's not needed).
You can tell the difference using getAllResponseHeaders(), there is no
"profiling" going on.
Looking at the definition for all getResponseHeaders(), it seems only be
useful for debugging purposes. Do you seriously suggest that somebody
who wants to know whether an empty response header was present in the
response takes that concatenated string and parses it (don't forget the
rules about leading WS and continuation lines in
<http://tools.ietf.org/html/rfc2616#section-4.2>).
Best regards, Julian