2018-06-19 06:17:04 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
//var request = require('urequest');
|
|
|
|
var request = require('../');
|
2021-01-14 23:07:48 +00:00
|
|
|
request('https://www.google.com', function (error, response, body) {
|
2019-10-29 20:31:30 +00:00
|
|
|
if (error) {
|
|
|
|
console.log('error:', error); // Print the error if one occurred
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
console.log('response.toJSON()');
|
|
|
|
console.log(response.toJSON());
|
2018-06-19 06:17:04 +00:00
|
|
|
});
|