如果请求来自应用程序而不是来自互联网,是否可以检测到?
var send = function() {
var request = http.request({
path: '/recieve',
port: 80,
method: 'POST'
}, function(res) {
// ...
});
request.write('foo');
request.end();
}
app.get('/recieve', function(req, res) {
// here I need detect if request is from application
});
send();