怎么把cURL转换成邮递员? [英] How to convert cURL to postman?
问题描述
邮递员具有将邮递员转换为cURL代码的内置功能,但是如果我想将cURL码转换为邮递员,如何有效地做到这一点?
例如,如下所示的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'授权:Bearer your_access_token'-H'内容类型:audio / wav; codec = audio / pcm; samplerate = 16000'--data-binary @your_wave_file
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'.
在官方文档此处中进行了解释。
Explained in the official docs here.
对于主体
,它选择 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屋!