2

我尝试进行浏览器调用

https://sb-ssl.google.com/safebrowsing/api/lookup

有和没有 API 密钥等,但每次,无论我做什么,我都会得到:

File not found
Firefox can't find the file at https://sb-ssl.google.com/safebrowsing/api/lookup?.
Check the file name for capitalization or other typing errors.
Check to see if the file was moved, renamed or deleted.

任何想法可能是什么问题?

4

1 回答 1

1

您使用的 URL 是来自Google Safebrowsing API V 1 的 AFAIk,它曾经支持GET请求,现在已弃用(并将在 12 月 1 日之前下线) - 我强烈建议切换到我收集的 API 的 V2仅支持通过请求POST

编辑:

抱歉 - 我过度阅读了“查找”部分......

我刚刚检查了您提供的 URL... 从 Firefox(最新版本)我可以确认您描述的内容... OTOH 当我通过 IE 尝试它时结果不同 - 它返回 HTTP 403,我认为这是由于事实上我没有有效的钥匙......

我只能得出结论,Firefox 做了一些谷歌不接受的事情——它可能与用户代理或其他任何东西有关……你用简单的wget或一些 http 客户端组件/类尝试过吗?

于 2011-11-06T20:49:34.040 回答