Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在postman中编写表单数据请求的等效原始请求?_Postman - Fatal编程技术网

如何在postman中编写表单数据请求的等效原始请求?

如何在postman中编写表单数据请求的等效原始请求?,postman,Postman,我使用表单数据-我通过表单数据传递2个wav文件。我使用的键是:“file1”、“file2” 使用表单数据时,烧瓶应用程序: def compare_voices(): if request.method == 'POST': file1 = request.files["file1"] file2 = request.files["file2"] 邮递员表单数据的外观: 我想知道如何在邮递员中转换成原始格式? 像 但它不起作用。我看到您正在尝试比较

我使用表单数据-我通过表单数据传递2个wav文件。我使用的键是:“file1”、“file2”

使用表单数据时,烧瓶应用程序:

def compare_voices():
    if request.method == 'POST':
        file1 = request.files["file1"]
        file2 = request.files["file2"]
邮递员表单数据的外观:

我想知道如何在邮递员中转换成原始格式? 像


但它不起作用。

我看到您正在尝试比较两个WAV文件。我认为在某个时候,您将需要实际的文件并执行您的计算

您可以通过单击raw,然后指定您的主体是JSON格式,以这种格式(称为JSON)进行编写


对不起。我不明白你的意思。图像显示的是您实际发送的文件(字节),您描述的原始数据格式只是文件的路径(没有实际发送文件)@caravana_942,是的,我只是想知道如何在原始请求表单中做同样的事情,而不是表单数据请求。但有一个问题:你想发送字节还是文件的路径?@caravana_942,path,老实说,我不知道,在表单数据中我发送paththx,但如何指定实际的文件路径?如何显示文件路径?通过将其写入值。例如{“路径”:“C:\User\Admin\Desktop\a.wav”}
{
"file1" : "path to file1" , 
"file2": "path to file2"
}