-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christian Biesinger wrote:
>> 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.
> 
> implement nsIURIContentListener instead - with that, you can return a stream 
> listener that receives the data.

tried it. it works perfectly !

many thanks Christian.

/mig
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFpXf5tMkIv0/ruZgRAtyrAKCuvl2uRZJBZAoLHbqgDYXHNskY0ACgoumG
DSJpYpoStQhPoNXBHcnJSUE=
=ljPC
-----END PGP SIGNATURE-----
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to