post - 邮递员 POST 请求给出 403 异常
问题描述
我正在尝试向DeepL API发送 POST 请求,我发送请求时收到 403 Forbidden 错误,表示请求“是合法请求,但服务器拒绝响应”,我想不通出为什么。我将附上下面的日志,如果我缺少任何相关数据,请告诉我。
要求:
POST /v2/translate?text=Hello%20world&target_lang=DE HTTP/1.1
请求日志:
Request Headers
HOST: api.deepl.com
Content-Type: application/x-www-form-urlencoded
Accept: */*
DeepL-Auth-Key: 243xoxoxooxooxd7
User-Agent: PostmanRuntime/7.28.4
Postman-Token: 80409-486f-8c91-4c300e0d24c1
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 49
Request Body
Response Headers
Server: nginx
Date: Thu, 04 Nov 2021 15:10:47 GMT
Content-Length: 0
Connection: keep-alive
Access-Control-Allow-Origin: *
Response Body
解决方案
推荐阅读
- javascript - NodeJS 无法正确加载其他文件
- javascript - 使用观察者检测元素何时出现
- php - php没有从freegeoip.net获取邮政编码
- alexa-skills-kit - alexa 不响应未处理的意图,而是调用我创建的任何自定义意图
- javascript - 使用模板使用的所有 CSS 规则生成一个内置的 angular index.html 页面?
- excel - 通过“结果”在 VBA 中查找
- c++ - 为什么类内部不允许初始化静态成员变量,但允许初始化 const 静态成员?
- html - 本地 HREF="" 标记未将一个页面链接到另一个页面
- android - 我可以使用 Facebook API 在群组上发帖吗?
- sql - 复制数据表到数据库 asp VB