【发布时间】:2020-07-20 05:08:19
【问题描述】:
我目前正在使用 Postman 测试 GET 请求。我只是想看看我能得到什么样的信息。大多数情况下,只需插入网站的网址即可。但是,有一个特定的网站给我带来了麻烦。当我尝试发起 GET 请求时,出现以下错误:
<title>Access denied | <url> used Cloudflare to restrict access</title>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css"
media="screen,projection" />
<!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,projection" /><![endif]-->
直接在 Chrome 中启动时,该网站运行良好。但是,每次我尝试在 Postman 中发送 GET 时,都会收到 403 响应。我已经尝试了一些解决方案:
- 复制并粘贴显示在 Chrome Inspect 工具(Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36)中的用户代理。李>
- 设置状态为“INTERCEPTOR CONNECTED”的 Postman 拦截器系统。还在我的 Chrome 扩展程序中安装了该插件。
- 为网站启用 cookie。
无论如何,如果我遗漏了一些明显的问题,或者您需要更多信息,请联系我们!我尽量不分享该网站的直接链接,但如果没有其他方法,我会分享。
【问题讨论】:
标签: http postman cloudflare