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.
精彩评论