0

所以首先,我必须说我看到了: Detect X-Frame-Options

但我没听懂,我试图关注但我不知道如何发送 AJAX 请求。

所以在我坐下来尝试学习之前,我想知道是否可以通过使用诸如 firebug/burp suite/tamper date 等工具来检查值是多少?

本质上,我想做的就是能够进入几个网页(一个接一个)并能够立即知道 X-frame-options 的价值是什么

谢谢你。

4

2 回答 2

0

执行相同操作的 Python 代码

import requests
r = requests.get("http://stackoverflow.com/")
print dict(r.headers).get("x-frame-options")
于 2015-07-07T06:36:00.463 回答
0

在 bash 中,您可以运行以下行。

curl -i http://stackoverflow.com/

于 2017-07-26T01:40:20.430 回答