Tim Geisler wrote:

> Is there an easy way (i.e., some scriptable XPCOM component) to prepend
> an nsIInputStream with a string?
> 
> In order to have a workaround for bug
> http://bugzilla.mozilla.org/showvotes.cgi?bug_id=37773
> (HTTPChannel adds POST stream directly after the headers, with no extra
> CRLF.)
> I would like to be able to prepend the upload stream for the HTTPChannel
> with the string CRLF.  Is this possible to do from JavaScript with some
> XPCOM component or do I need to implement some wrapper in C++? (the
> relevant methods of nsIInputStream, read and readSegments, are not
> scriptable)
> 
> Of course, fixing the abovementioned bug would also be a help ...


No easy way as far as I know.

Darin


Reply via email to