rem:  chann.setRequestHeader('content-type', 'text/xml'); chann.setRequestHeader('content-length', request.length); 
context:     _getChannel: function(request) {        // Set up channel.        var ioService = getService('@mozilla.org/network/io-service;1',            'nsIIOService');        var chann = ioService.newChannelFromURI(this._serverUrl)            .QueryInterface(Components.interfaces.nsIHttpChannel);        // Set the request method.        chann.requestMethod = '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.        // and pending bug 112479, we have to set the headers manually.        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);        return chann;    },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/34a1713a4fa3c1ca592471a9372e4e7f8f428aac/nsXmlRpcClient.js/buggy/extensions/xml-rpc/src/nsXmlRpcClient.js