rem: var handler = ioService.getProtocolHandler(this._serverUrl.scheme) .QueryInterface(Components.interfaces.nsIHTTPProtocolHandler); var postStream = handler.NewPostDataStream(false, '\r\n' + request, handler.ENCODE_NORMAL); chann.UploadStream = postStream;   chann.SetRequestHeader(atomService.getAtom('content-type'), 'text/xml'); chann.SetRequestHeader(atomService.getAtom('content-length'), request.length); 
add:  chann.setRequestHeader('content-type', 'text/xml'); chann.setRequestHeader('content-length', request.length); request = "\r\n" + request; var upload = chann.QueryInterface(Components.interfaces.nsIUploadChannel); var postStream = createInstance('@mozilla.org/io/string-input-stream;1', 'nsIStringInputStream'); postStream.setData(request, request.length); upload.setUploadStream(postStream, 'text/xml', -1); 
context:     _getChannel: function(request) {        // Set up channel.        var ioService = getService('@mozilla.org/network/io-service;1',            'nsIIOService');        var atomService = getService('@mozilla.org/atom-service;1',            'nsIAtomService');        var chann = ioService.newChannelFromURI(this._serverUrl)            .QueryInterface(Components.interfaces.nsIHTTPChannel);        // Set the request method.        chann.SetRequestMethod(atomService.getAtom('POST'));        // Create a stream out of the request and attach it to the channel        // Note: pending bug #37773, an extra \r\n needs to be added.        var handler = ioService.getProtocolHandler(this._serverUrl.scheme)            .QueryInterface(Components.interfaces.nsIHTTPProtocolHandler);        var postStream = handler.NewPostDataStream(false, '\r\n' + request,            handler.ENCODE_NORMAL);        chann.UploadStream = postStream;        // Set the request headers        chann.SetRequestHeader(atomService.getAtom('content-type'), 'text/xml');        chann.SetRequestHeader(atomService.getAtom('content-length'),            request.length);        return chann;    },
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/0745c507244aa0351c1c9fc809d5712b8ee7a555/nsXmlRpcClient.js/buggy/extensions/xml-rpc/src/nsXmlRpcClient.js