redirect with data express code example Example: express redirect with post data app.post('/', function(req, res) { res.redirect(307, '/test'); });