Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get empty HTTP response header?

36 views
Skip to first unread message

Jan Honza Odvarko

unread,
Jul 15, 2011, 11:24:06 AM7/15/11
to
Firebug Net panel is intercepting and displaying HTTP response headers
using nsIHttpActivityObserver.

When nsIHttpActivityObserver.ACTIVITY_SUBTYPE_RESPONSE_HEADER event is
fired headers are passed into a registered callback as a string, but
empty headers are missing.

Headers can be also iterated using
nsIHttpRequest.visitResponseHeaders, but it works the same - empty
headers are not there.

Here is a simple example:
Load this page: http://stevesouders.com/images/twitter-icon.png
- the server sends empty "ETag" header.

Is this expected behavior?
Is there any way to somehow get even empty headers?

Honza

Boris Zbarsky

unread,
Jul 15, 2011, 11:37:10 AM7/15/11
to
On 7/15/11 11:24 AM, Jan Honza Odvarko wrote:
> Is this expected behavior?

For now, yes.

> Is there any way to somehow get even empty headers?

For now, not really.

See also https://bugzilla.mozilla.org/show_bug.cgi?id=669259

-Boris

0 new messages