I want to get the url the client has requested out of the request.
Currently I use:
var requestedUrl = req.protocol + \'://\' + req.host + \':3000\' + re
Is this that you are looking for ?
req._parsedUrl.pathname
You should, if you don't already use:
var util = require('util'); // core module console.log(util.inspect(req));
To debug find out that kind of data.