JavaScript
1
Вклад в тег
var app = express();
var request = require('request');
app.use(function (req, res, next) {
request('http://www.google.com', function (error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body) // Show the HTML for the Google homepage.
}
});
next();
});