June 2014
Intermediate to advanced
696 pages
38h 52m
English
HTTP requests often include query strings in the URL or parameter data in the body for form submissions. The query string can be obtained from the URL object defined in the previous section. The parameter data sent by a form request can be read out of the body of the client request, as described later in this chapter.
The query string and form parameters are just basic key/value pairs. To actually consume these values in your Node.js webserver, you need to convert a string into a JavaScript object by using the parse() method from the querystring module:
querystring.parse(str, [sep], [eq], [options])
The str parameter is the query or parameter string. The sep parameter ...
Read now
Unlock full access