Re: nsIChannel for internal domains

2009-06-30 Thread MAK
Peter, using http-on-examine-response is working fine in all the versions of firefox starting from 1.5.0.4; I haven't tested it below that. and thankx a lot for your comments regards, Arun On Jun 30, 1:12 am, Peter Djalaliev wrote: > Hi Arun, > > You are right, this should work.  The ht

Re: nsIChannel for internal domains

2009-06-29 Thread Peter Djalaliev
Hi Arun, You are right, this should work. The http-on-examine-response fires when Firefox receives an HTTP response: http://mxr.mozilla.org/firefox/source/netwerk/protocol/http/src/nsHttpChannel.cpp#874 The first response arrives after the TLS connection has been established, so the channel sho

Re: nsIChannel for internal domains

2009-06-29 Thread MAK
Thankx a lot Peter This works fine. But as you mentioned this is not possible with the older series browsers. So I just tried to fetch the certificate when "http-on- examine-response" is fired. I could fetch the certificates of all the internal domains. So can this be used as such or st

Re: nsIChannel for internal domains

2009-06-26 Thread Peter Djalaliev
Arun, One way is to register a nsIStreamListener using the nsITraceableChannel interface of the HTTP channel. Your nsIStreamListener will need to implement onStartRequest(), onStopRequest() and onDataAvailable(). In your case, however, the last two will just be almost empty methods. In onStartR

Re: nsIChannel for internal domains

2009-06-25 Thread MAK
Thankx Peter, But how is the registration for nsIRequestObserver done. I tried out many options, but in no way I'm able to query the nsISSLStatus interface through nsIRequestObserver. regards, Arun On Jun 25, 6:07 pm, Peter Djalaliev wrote: > Hi, > > The images are also fetched through HTT

Re: nsIChannel for internal domains

2009-06-25 Thread Peter Djalaliev
Hi, The images are also fetched through HTTP GET requests, right? "http- on-modify-request" is domain-independent, i.e it will notify you of every outgoing HTTP request, both to websites A and B. For example, assuming that A is the main web server and B is the image server, you should see one or