diff --git a/instruments/bootstrap_example.js b/instruments/bootstrap_example.js index 9c17fce55..5a59f3acc 100644 --- a/instruments/bootstrap_example.js +++ b/instruments/bootstrap_example.js @@ -80,8 +80,8 @@ while(runLoop) { console.log("Executing command " + commandId + ": " + command); var result = eval(command); console.log("####"+commandId+"####"+result+"####"); - var url = 'send_result/'+commandId+'/'+encodeURIComponent(result); - doCurl('GET', endpoint + url, null, function(err, res) { + var url = 'send_result/'+commandId; + doCurl('POST', endpoint + url, {result: result}, function(err, res) { console.log("Sent result to server"); }); } diff --git a/instruments/example.js b/instruments/example.js index b3ef41206..f3f99f064 100644 --- a/instruments/example.js +++ b/instruments/example.js @@ -11,6 +11,7 @@ var http = require('http') , instruments = require('./instruments'); app.configure(function() { + app.use(express.bodyParser()); app.use(app.router); });