我使用的是CapserJS 1.1.0-beta3和PhantomJS 1.8.2.
我调用一个响应重定向的URL(HTTP 302).PhantomJS自动跟随重定向,但在我的用例中,PhantomJS不应该遵循重定向.
重定向的调试输出如下所示:
[debug] [phantom] Navigation requested: url=https://foo.com/bar.jsp, type=Other, willNavigate=true, isMainFrame=true
Run Code Online (Sandbox Code Playgroud)
如何配置PhantomJS/CapserJS不遵循重定向?