Andrew Van Uitert wrote:
I need to have my filter sit at a level where it sees all http requests
before they hit the socket. The reason I have to sit so low, is that many of
the porn sites use re-directs to pay other sites for their listings. At the
XPCOM embed level I can only see the original URL, I never see any of the
URL's that are downloaded as a result of a redirect.

You can hook into redirects by implementing nsIHttpEventSink in the channel opener. See what nsURIChecker does at http://lxr.mozilla.org/seamonkey/source/netwerk/base/src/nsURIChecker.cpp#360, for example... (and
http://lxr.mozilla.org/seamonkey/source/netwerk/base/src/nsURIChecker.cpp#206).


-Boris
_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to