Node.js の学習を開始し、Node.js でPOSTリクエストを送信します。
var http = require('http')
  , https = require('https')
  , _ = require('underscore')
  , querystring = require('querystring');    
// Client constructor ...
Client.prototype.request = function (options) {
    _.extend(options, {
        hostname: Client.API_ENDPOINT,
        path: Client.API_PATH,
        headers: {
            'user-agent': this.agent
        }
    });
    var req = (this.secure ? https : http).request(options);
    if(options.data) req.write(querystring.stringify(options.data));
    req.end();
    req.on('response', function (res) {
        res.on('data', function (chunk) {
            res.body += chunk;
        });
        res.on('end', function () {
            console.log(res.body);
        });
    });
}
本文は次のとおりundefined<xml version="1.0" encoding="UTF-8">です。
それはどこからundefined来たのですか?