首页 > 解决方案 > 邮递员 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

标签: postpostmandeepl

解决方案


推荐阅读