In my config is:

"url": {
	    "host": "localhost",
	    "path": "/workspace/xxx",
	    "method": "GET",
	    "headers": {
	    	"accept": "application/json"
	    }
   }
--------------------
var options = this.server.config.url;
options.method = "POST";
	  var req = http.request(options, function(res) {
		  console.log('STATUS: ' + res.statusCode);
		  console.log('HEADERS: ' + JSON.stringify(res.headers));
		  res.setEncoding('utf8');
		  res.on('data', function (chunk) {
		    console.log('BODY: ' + chunk);
		  });
		});

		req.on('error', function(e) {
		  console.log('problem with request: ' + e.message);
		});

		// write data to request body
		req.write('{"User":{"name":"peter"}}');
		req.end();