Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express request post body form

const bodyParser = require('body-parser');
app.use(bodyParser.json());
app.use(bodyParser.urlencoded());
// in latest body-parser use like below.
app.use(bodyParser.urlencoded({ extended: true }));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #express #request #post #body #form
ADD COMMENT
Topic
Name
8+7 =