在 PostMan 中模拟特定的 CURL

编程入门 行业动态 更新时间:2024-10-24 18:25:43
本文介绍了在 PostMan 中模拟特定的 CURL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用 Postman 测试对 API 服务器的一些 Curl 请求.API 开发人员给了我们 curl 命令,但我无法从 Postman 发送它.如何向邮递员提出这样的要求?

I am using Postman to test some Curl requests to an API server. The API developers gave us the curl command, but I can't send it from the Postman. How to make such a request from the Postman?

curl -X POST "api-server/API/index.php/member/signin" -d "{"description":"","phone":"","lastname":"","app_version":"2.6.2","firstname":"","password":"my_pass","city":"","apikey":"213","lang":"fr","platform":"1","email":"email@example","pseudo":"example"}" --0xKhTmLbOuNdArY Content-Disposition: form-data; name="userfile"; filename="profil.jpg" Content-Type: image/jpeg Content-Transfer-Encoding: binary <ffd8ffe0 00104a46 49460001 01010048 ... a00fffd9> —0xKhTmLbOuNdArY—

推荐答案

更简单的方法是:

  • 打开邮递员
  • 点击导入"标签在左上角.
  • 选择原始文本选项并粘贴您的 cURL 命令.
  • 点击导入,您将在 Postman 构建器中获得命令!
  • 点击发送发布命令
  • 更多推荐

    在 PostMan 中模拟特定的 CURL

    本文发布于:2023-10-29 04:03:36,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1538671.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:PostMan   CURL

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!