Reputation: 167
Lets suppose I want to get some page and when server get my request, it redirect me few times. How to detect those redirects when using request? I would like to see full redirection path if this is possible.
Also I notice that when I visit some pages - I'm redirected from somepage.com/blah to somepage.com and the status is 200? How?
Upvotes: 1
Views: 378
Reputation:
Install Morgan on your express server and use the following code :
`app.use(morgan('dev'));`
This will log all the get and post requests to your console.
Upvotes: 1