What is node.js equivalent of
$_SERVER['QUERY_STRING']
and also to put it in:
list($a,$b,$c ...) = explode('/', $_SERVER['QUERY_STRING']);
What is node.js equivalent of
$_SERVER['QUERY_STRING']
and also to put it in:
list($a,$b,$c ...) = explode('/', $_SERVER['QUERY_STRING']);
See the answer here for how to get the query string: How to get GET (query string) variables in Express.js on Node.js?
Then use querystring.parse() to get an object representing the keys and values in the query string.
http://nodejs.org/api/querystring.html#querystring_querystring_parse_str_sep_eq_options