开发者

Listening to HTTP headers in XUL applications

Is it possible for example to create an iframe with www page inside and print all the HTTP requests in kind of text element like label or something (it doesn't metter in wh开发者_C百科ich one, I just want to preview the headers.


You need observerService to listen to http-on-modify-request (request headers) and/or http-on-examine-response (response headers).

I don't have complete code at the moment, but see these snippets to get the idea.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜