Hi,

  I am trying to do some work on the PICS component in Mozilla. One of
the things I need to do is to stop the loading of an document if the
the HTTP response contains a "PICS-Label" header with a value which
does not match the user preferences.

  I have the code hooked up so that AsyncExamineResponse is called
when the header responses have been successfully received, and I am
managing to retrieve the PICS-Label header and parse it.

  To cancel the document loading, I am doing a QueryInterface on the
object passed in, to get an nsIRequest object, and then calling Cancel
on the Request object. This seems to work.

  Ideally though I would then like to load a document from a different
URL, to indicate failure to the user. Does anyone know how I can do
this?

Matthew Wilson

Reply via email to