Hi,
I'm doing a little developpement around mozilla this days and I would like to intercept and modify requests made to servers within mozilla browser and before connection. The reason of this : my application requires remote output stream keyword filtering to filter informations sent by user to the server (in fact almost all the time, this will be "simple" HTTP requests made to some HTTP server).
Then there are my questions :
1) How to access HTTP request header and content data before load happen (before connection to server) ? with nsIRequest or child interface ?
2) How to modify HTTP request header or data before load happen ?
I've also seen nsIStreamListener but I've not found any documentation related and then could I modify data ?
Thanks a lot for answer ;)
notice: I'm not very good in english, so I hope what I wrote was easy to understand ;P
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding
see nsIHttpChannel. it inherits from nsIChannel, which inherits from nsIRequest.
you can use nsIObserverService to hook your application up to receive notifications about HTTP requests and responses. nsIHttpProtocolHandler.idl documents these observer topics.
see the online xpcom book (http://www.mozilla.org/projects/xpcom/book/cxc/) for more info on using nsIObserverService to intercept various Gecko events.
if you have any questions, don't hesistate to ask.
-darin _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
