2018-06-19 01:39:19 +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
|
|
|
console.log('error:', error); // Print the error if one occurred
|
|
|
|
console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
|
|
|
|
console.log('body:', body); // Print the HTML for the Google homepage.
|
2018-06-19 01:39:19 +00:00
|
|
|
});
|