commit
f2f28a55fe
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ The following example illustrates how to use http.request to make a request to a
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var jsResponse;
|
var jsResponse;
|
||||||
var http = require('request');
|
var http = require('http');
|
||||||
http.request('http://scriptcraftjs.org/sample.json',function(responseCode, responseBody){
|
http.request('http://scriptcraftjs.org/sample.json',function(responseCode, responseBody){
|
||||||
jsResponse = JSON.parse( responseBody );
|
jsResponse = JSON.parse( responseBody );
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue