【问题标题】:Getting Error 401--Unauthorized in Postman when using post method to make a to call external API使用 post 方法调用外部 API 时出现错误 401--在 Postman 中未经授权
【发布时间】:2018-07-08 10:09:19
【问题描述】:

我正在尝试使用 Windows 10 中的 Postman 本机应用程序从 API 获取响应。 我在使用代理的公司系统中,因此我需要为从我的系统发送的每个请求传递代理凭据。 根据邮递员文档,我设置了代理设置,但仍然收到 401:未经授权的错误。

Postman Proxy Settings

其他建议是在发送请求时使用基本身份验证。也无济于事:

Baisc Auth settings for Proxy in postman

【问题讨论】:

    标签: proxy postman unauthorized


    【解决方案1】:

    我在本机应用程序中尝试了所有的东西,但它不起作用。 解决方法是使用 Postman 的 Chrome 扩展程序。 请参考以下步骤:

    1.> 搜索 Postman Interceptor chrome 扩展

    2.> 安装扩展

    3.> 启动邮递员扩展

    4.> 使用您的 google 帐户登录或在 postman 中注册一个帐户。

    5.> 当您尝试登录时,弹出提示需要输入代理用户名和密码。

    6.> 代理设置更新后,发送请求。您应该会收到预期的回复。

    编码愉快:)

    【讨论】:

      猜你喜欢
      • 2020-12-17
      • 1970-01-01
      • 2017-11-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-03
      • 2014-10-09
      • 1970-01-01
      相关资源
      最近更新 更多