I'm currently working on an extension that requires me to selectively
change HTTP headers in order to implement a prototype of a new HTTP
authentication scheme, and I'm wondering how it would be possible to
signal the corresponding object attempting a request (e.g.
XMLHTTPRequest/nsIDOMWindow, etc.) to retry a request so that I can
insert/change HTTP headers in the request as needed, the second time
around.

Thanks,

Ian