【发布时间】:2016-09-17 16:19:33
【问题描述】:
我正在尝试使用 google safe browsing API 检查任何给定 URL 的分类。
根据 google safebrowsing API 页面 (https://developers.google.com/safe-browsing/v4/lookup-api) ,我向 POST 发出 HTTP 请求并检查网站分类。
作为回报,我没有看到任何对我发布的内容的响应。
收到回复:
#{}
使用的命令:
#curl -H "Content-Type: application/json" -X POST -d ' { "client": { "clientId": "Test", "clientVersion": "1.0.0" }, "threatInfo": { "threatTypes": ["MALWARE", "SOCIAL_ENGINEERING"], "platformTypes": ["WINDOWS"], "threatEntryTypes": ["URL"], "threatEntries": [ {"url": "http://www.facebook.com"} ] } }' https://safebrowsing.googleapis.com/v4/threatMatches:find?key=AIzaSyD1IMgjaHEza6e9m_jwtjBgPmJX0IMKKIs HTTP/1.1
我已经检查了命令,但不确定我在哪里犯了错误。有什么想法吗?
【问题讨论】:
标签: curl post get httprequest httpresponse