Request not being fulfilled like http://localhost:3333/userinfo/STEAMID. But the request directly through the link to the API everything works fine ( https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=MYAPIKEY&steamids=STEAMID).
app.get('/userinfo', function(req, res) {
var qParams = [];
for (var p in req.query) {
qParams.push({'name':p, 'value':req.query[p]})
}
var url = 'https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=myapikey&steamids=' + qParams[0].name;
request(url, function(err, response, body) {
if(!err && response.statusCode < 400) {
console.log(body);
res.send(body);
}
});
});