本文介绍了在 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 "https://api-server.com/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.com","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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!