-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
I have problems with the following scenario: intercepting a response on a particular mimetype, parsing the response content and doing stuff with that parsed content. I implemented a nsIContentHandler component which works fine, but i don't see how to get the response data. When the handleContent method is invoked, i get the nsIRequest as a parameter that i queryinterface to a nsIChannel. I would like to use an nsIStreamListener to capture data asynchronously, but if i do an asyncOpen on the channel, i get the error NS_ERROR_IN_PROGRESS, which makes sense as the channel has already been opened. The only solution i can see so far is to cancel the current request and perform another on my own to the same uri, but that looks a little bit dirty and i tend to think that there is a better way to get content from a content handler. Any idea anyone ? /mig -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFpTPNtMkIv0/ruZgRAirMAJ0edITie+RBVkd+fMN1FJb52s1h3wCcDREK VoOFgO2BFvZr/ykPfIWpuzs= =HdN7 -----END PGP SIGNATURE----- _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
