如何将 cURL 转换为邮递员? [英] How to convert cURL to postman?

查看:14
本文介绍了如何将 cURL 转换为邮递员?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Postman 内置了将 postman 转换为 cURL 代码的功能,但是如果我想将 cURL 代码转换为 postman,我怎样才能有效地做到这一点?例如cURL代码如下;

Postman has built-in function to convert postman to cURL code, but if I want to convert cURL code to postman, How can I do this efficiently? For example, cURL code as following;

curl -v -X POST "https://speech.platform.bing.com/recognize?scenarios=smd&appid=D4D52672-91D7-4C74-8AD8-42B1D98141A5&locale=your_locale&device.os=your_device_os&version=3.0&format=json&instanceid=your_instance_id&requestid=your_request_id" -H 'Authorization: Bearer your_access_token' -H 'Content-type: audio/wav; codec="audio/pcm"; samplerate=16000' --data-binary @your_wave_file

推荐答案

通过使用导入"功能,然后使用粘贴原始文本".

By using the 'Import' functionality followed by 'Paste Raw Text'.

在官方文档这里中有解释.

对于 body,它选择 raw 并希望用户将文件内容粘贴到 Postman.或者,您可以将其切换为 binary 并在执行实际请求时手动上传文件.

For the body it selects raw and expects the user to paste the content of the file into Postman. Alternatively you can toggle it to binary and upload the file manually while doing the actual request.

这篇关于如何将 cURL 转换为邮递员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆