I have the following test code,
app.use(function(req,res,next)
{
console.log("Params : " + req.params);
console.log("Path : " + req.path);
console.log("Query :" +req.query);
for(var params in req.query)
{
console.log(params);
}
res.end("processed");
});
whenever I generate a request with the following url
http://127.0.0.1:8080/path/resource/myname?user=alanz&password=alpacasocks
I obtain the output
Params : [object Object]
Path : /path/resource/name
Query :[object Object]
user
It does not seem to detect the second query variable. Generating the request with curl.