我正在尝试向sophos intellix authenticate api进行身份验证
curl --location --request POST 'https://api.labs.sophos.com/oauth2/token'
--header 'Content-Type: application/json;charset=UTF-8'
--header 'Authorization: Basic {encoded key:secret}'
--data-raw 'grant_type=client_credentials我收到了这样的回复:
400错误无法满足请求。
错误的请求。此时无法连接到此应用或网站的服务器。可能存在过多的流量或配置错误。请稍后重试,或与应用程序或网站所有者联系。
如果您通过CloudFront向客户提供内容,则可以通过查看CloudFront文档找到故障排除步骤和帮助防止此错误。
云前置( cloudfront )请求ID: cbA_F5avox5aIXvXdc91LFbn0PylJY4LfKqB_bYL7dfMsgCFElTArA==生成
cURL请求中遗漏了什么?
发布于 2020-11-23 06:22:06
天哪..。具有错误的内容类型标头值
--header 'Content-Type: application/x-www-form-urlencoded' 完整的curl请求:
curl --location -X POST 'https://api.labs.sophos.com/oauth2/token' --header 'Content-Type: application/x-www-form-urlencoded' --header 'Authorization: Basic {encoded key:secret}' --data-raw 'grant_type=client_credentials' -ihttps://stackoverflow.com/questions/64960073
复制相似问题