-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> i am in asynchronous mode for starting the download, up to getting the >> response headers, then i block while downloading the response content. > > Er.. you mean you call open() on an already-open channel? Or something > different?
yes i was calling open from the onload callback of xmlhttprequest. i throught xmlhttprequest.channel was there for getting the content only and was not already opened. i get the http headers i need from xmlhttprequest.getResponseHeader() prior to (re)opening the channel. i am now trying to get the content in an asynchronous way. this means i must attach a nsIStreamListener to the channel. you can pass the listener when you call openAsync, but if the channel is already opened and openAsync should not be called again, i don't see anything in the interface to attach the listener afterwards. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFeFN7tMkIv0/ruZgRAnQeAJ9cK4HvSKfyiU/Xl1XVhLKzGb5QuACgw9Hs ffWScnJBVw12DmOo1+iLIuY= =+gbq -----END PGP SIGNATURE----- _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
