mirror of
https://github.com/appium/appium.git
synced 2026-02-18 07:58:56 -06:00
I can haz POST.
This commit is contained in:
4
instruments/bootstrap_example.js
vendored
4
instruments/bootstrap_example.js
vendored
@@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ var http = require('http')
|
||||
, instruments = require('./instruments');
|
||||
|
||||
app.configure(function() {
|
||||
app.use(express.bodyParser());
|
||||
app.use(app.router);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user