Boris Zbarsky schreef:
Frederik Vanderstraeten wrote:
Using an nsIContentPolicy I want to block a site request depending on
HTTP POST data.
What's the easiest way to do it?
There isn't one at all. For common cases (e.g. HTML form posts) you can
examine aContext, maybe, but there's no way to detect POST data passed
to nsIWebNavigation::LoadURI.
Perhaps we should add this to the API...
-Boris
What about observing http-on-modify-request?
Will this always happen before a call to nsIContentPolicy? Will it
contain the POST data?
If so I could queue the information and get it in my content policy.
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom