0
노드 응용 프로그램에 요청 lib (https://www.npmjs.com/package/request)를 사용합니다.노드 요청의 간단한 사용이 작동하지 않습니다.
그리고이 간단한 예제가 작동하지 않습니다는 :
console.log(' BEGIN ---- ');
request('http://www.google.com', function (error, response, body) {
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.
});
console.log('END ---- ');
난 단지 시작 ---- 및 END ---- 내 콘솔 메시지,하지만 아무것도 GET 요청에서 있습니다.
내가 뭔가를 놓쳤습니까?