See full redirect path and HTTP status code in Chrome

社会主义新天地 提交于 2019-12-31 10:57:26

问题


I'm trying to find out of a certain link shorteners and out.php linkscripts redirect using 301 redirect or not. I'm looking at the resources tab in Chrome's developer tools, but it only shows headers for the target page and not for the link scripts itself.

Also, some of the sites I'm investigating actually redirect more than once, so it'd be best if I could track the entire redirect path.

How can I see if how I was exactly redirected, and if they were using 301 or not?


回答1:


Since 2014

At the top of Chrome's inspector (in the Network tab) is a checkbox which says Preserve log. Enable this option. Now it doesn't matter at all how the page navigates, the inspector will keep all log history -- including the redirect response.

Older versions of Chrome

At the bottom of Chrome's inspector (in the Network tab) is a button with a big circle. Hover over this button and a tooltip says Preserve log upon navigation. Click the button and it will turn red. Now it doesn't matter at all how the page navigates, the inspector will keep all log history -- including the redirect response.




回答2:


In Chrome's developer tools - select "Resources" - then under either "Documents" or "Other" you should be able to find the original request- view the "Headers" to see status code of 301. There's a great article here - http://www.html5rocks.com/tutorials/developertools/part1/#toc-resources




回答3:


I had the same issue and found the solution differed slightly to previous answers.

I had to select Other for the document type in the filter bar, as well as have preserve log ticked and record network log on.



来源:https://stackoverflow.com/questions/4734374/see-full-redirect-path-and-http-status-code-in-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!