node.js - Node Express - empty query after form submit -
i pars url after form submit. have simple form: form(method='post', action='/recipe/create') hr div div.input.text label(for='recipetitle') tytuł przepisu: input(type='text', name='recipetitle', id='recipetitle') div.input.text label(for='photofilename') nazwa zdjęcia: input(type='text', name='photofilename', id='photofilename') after submit code executed. exports.create = function(req, res){ var url = require('url'); var url_parts = url.parse(req.url, true); console.log(url_parts); my question why console shows empty query { protocol: null, slashes: null, auth: null, host: null, port: null, hostname: null, hash: null, search: '', query: {}, pathname: '/recipe/create', path: '/recipe/create', href: '/recipe/create' } this happens because you're posting url...