I train myslef with NodeJS and tried a simple GET call. Here is my code:
var http = require(\'http\');
var options = {
host: \'www.boardgamegeek.com\',
When behind a proxy you need to make the following modifications (as explained in this answer):
host
parameterport
parameterpath
parameter :Which gives:
var options = {
host: '',
port: '',
path: 'http://www.boardgamegeek.com/xmlapi/boardgame/1?stats=1',
method: 'GET',
headers: {
Host: 'www.boardgamegeek.com'
}
}