以下のコードを使用して外部URLから応答を取得しようとしていますが、運がありません。誰かが私が間違っていることに光を当てて、彼らが役立つと思うポインタを与えることができますか?
var express = require('express'),
require('events');
var app = express.createServer();
app.request({
host: "http://ws.audioscrobbler.com",
port: 80,
method: "GET",
path: "/2.0/?method=artist.getsimilar&artist=bandname&api_key=b25b959554ed76058ac220b7b2e0a026"
}).on('response',function(response) {
console.log(response);
});
app.listen(4000);