Hi,
    I had a extension which used to monitor the outgoing traffic. In
this extension I had to reteive the HTTP version, for which, I used to
get the nsIHttpChannelInternal interface and call the GetVersion on
it, but now when I tested the same extension with Firefox 3.0 Beta 5,
I couldnt get the interface pointer and hence the version. Has
anything changed here? What should I do in order to get the HTTP
version ?

I understand since the interface has not yet freezed I should not
depend on it, but I couldnt find any other interface which provided me
with the information.


Thanks
Prasad


Code Summary:
1. Replace HTTP Handler with custom Handler, all calls for HTTP
directed to custom handler.
2. On NewChannel Call, create original HTTP Channel and retrieve the
pointers to nsIHTTPChannel, nsIChannel, nsIHTTPChannelInternal etc.,
and pass this information to custom Channel.
3. Return the custom channel, to divert all the calls to the custom
channel.
4. On Open or AsyncOpen retrieve the information using the above
pointers.


_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to