在 Chrome 中查看完整的重定向路径和 HTTP 状态代码 [英] See full redirect path and HTTP status code in Chrome

查看:111
本文介绍了在 Chrome 中查看完整的重定向路径和 HTTP 状态代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找出某个链接缩短器和 out.php 链接脚本是否使用 301 重定向重定向.我正在查看 Chrome 开发者工具中的资源选项卡,但它只显示目标页面的标题,而不是链接脚本本身.

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.

如何查看我是否被准确重定向,以及他们是否使用 301?

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

推荐答案

自2014年

在 Chrome 的检查器顶部(在 Network 选项卡中)是一个复选框,上面写着 Preserve log.启用此选项.现在页面如何导航已经无关紧要了,检查器将保留所有日志历史记录——包括重定向响应.

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.

Chrome 检查器的底部(在 Network 标签中)是一个带有大圆圈的按钮.将鼠标悬停在此按钮上,工具提示会显示 Preserve log on navigation.点击按钮,它会变成红色.现在页面如何导航已经无关紧要了,检查器将保留所有日志历史记录——包括重定向响应.

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.

这篇关于在 Chrome 中查看完整的重定向路径和 HTTP 状态代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆