在PostMan中模拟特定的CURL [英] Simulate a specific CURL in PostMan
本文介绍了在PostMan中模拟特定的CURL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Postman测试对API服务器的一些Curl请求。 API开发人员向我们提供了curl命令,但我无法从邮递员发送。如何从邮递员发出这样的请求?
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—
推荐答案
一种更简单的方法是:
- 打开POSTMAN
- 单击上方的导入标签
- 选择原始文本选项并粘贴您的cURL命令。
- 单击导入,您将在Postman构建器中使用该命令!
- 单击发送以发布命令
- Open POSTMAN
- Click on "import" tab on the upper left side.
- Select the Raw Text option and paste your cURL command.
- Hit import and you will have the command in your Postman builder!
- Click Send to post the command
希望这会有所帮助!
这篇关于在PostMan中模拟特定的CURL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文