【问题标题】:File not found - Google Safe Browsing Lookup API未找到文件 - Google 安全浏览查找 API
【发布时间】:2011-09-29 14:38:31
【问题描述】:

我尝试通过浏览器调用

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.

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

【问题讨论】:

    标签: api safe-browsing


    【解决方案1】:

    您使用的 URL 是来自 Google Safebrowsing API V 1 which used to support GET requests and is now deprecated (and will be taken offline by December 1st) 的 AFAIk - 我强烈建议切换到 V2 of the API,据我收集的信息仅支持通过 POST 的请求。

    编辑:

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

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

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

    【讨论】:

    • 这是我感兴趣的查找 API - 没有 V1 和 V2?
    • 谢谢 Yahia - 我希望能找到解决方案,而不仅仅是一个未被注意到的 Google 错误。
    • @AntonyCarthy 我不认为这是一个错误 - 因为 Mozilla 和 Google 有一些特殊协议,我怀疑这个 API/URL 的行为与 Firefox 和 IE 不同...
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-09
    • 2013-10-20
    • 1970-01-01
    • 2011-01-04
    • 1970-01-01
    相关资源
    最近更新 更多