Saturday 20 May 2017

How can I get `location.href` redirected page in node.js `request` module?

If I get a page which shows waiting message and it contains markup like this:

<body onload="location.href='redirect.html';">

This waiting page and redirect.html both get 200 OK in broswer,

but request module seems like only follow 3xx redirect in HTTP response.

How can I get redirect.html by using request module?



via Stephen Chen

No comments:

Post a Comment