【问题标题】:Construct URL from Postman Basic Authentication从 Postman 基本身份验证构造 URL
【发布时间】:2023-03-22 11:57:02
【问题描述】:

您好,我正在尝试为以下 Postman 基本身份验证构建一个 URL。 Username 中的值为 API Token 或 API key。

我试过了:

https://company.clearbit.com/v1/domains/find?name=Jackson marketing&Username=myAPIYeywhichisblackedoutinimage

在 postmane 中它可以工作,但我得到的 URL 是:

{
  "error": {
    "type": "auth_required",
    "message": "Authentication is required for this action. Sign up at https://clearbit.com"
  }
}

如何构造一个适合但粘贴到浏览器的 URL?

约翰

【问题讨论】:

    标签: rest curl postman basic-authentication


    【解决方案1】:

    基本身份验证要求您在 HTTP 请求中设置 Authorization header,因此您不能只将 URL 粘贴到浏览器中,您需要使用标头集构建请求(就像您是邮递员)。

    【讨论】:

      猜你喜欢
      • 2015-07-08
      • 2014-06-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-20
      • 2011-01-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多