diff --git a/lib/http.js b/lib/http.js index 3aa9758..c6f3112 100644 --- a/lib/http.js +++ b/lib/http.js @@ -97,6 +97,7 @@ var HTTPObject = function(engine) { ]); } else if (this.engine == "CURL") { this.interface = SHELL.create(); + this.interface.setPrefix("bin\\curl"); // the location of cURL binary } return this; }; @@ -449,7 +450,7 @@ var HTTPObject = function(engine) { if (this.states.length > 0) { // Make CURL context var state = this.states[this.states.length - 1]; - var cmd = ["bin\\curl"]; + var cmd = []; var url = state.url; if (this.isDebugging) {