How i can send http request?
TheRadioGuy opened this issue ยท 3 comments
@DuckerMan the API documentation includes a section on the built in http
module and includes a useful example:
var jsResponse;
var http = require('http');
http.request('http://scriptcraftjs.org/sample.json',function(responseCode, responseBody){
jsResponse = JSON.parse( responseBody );
});
Hope this helped!