Mark wrote:
> If I register an observer for "http-on-examine-response", how can I
> get the body of the response instead of just the headers?

You can't; by the time you get that notification the body hasn't started 
to download yet.

> Can I check the status code of the http response with that kind of
> observer?

Yes, QueryInterface the channel (subject) to nsIHttpChannel and get the 
responseStatus property.

If you want the body of the response, you could use 
http://lxr.mozilla.org/seamonkey/source/parser/htmlparser/public/nsParserDataListener.h#42,
 
if it's enough to get the data of all the documents (and not also 
images, scripts, etc)


_______________________________________________
dev-tech-xpcom mailing list
dev-tech-xpcom@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to