将 csv 文件添加到 HTTP POST文件、csv、POST、HTTP

2023-09-07 10:42:54 作者:半颗糖、甜到殤り

我想发送一个邮递员 HTTP POST.在这个请求中,对于关键 'fisier',我想附上一个 csv 文件.如何做到这一点?

使用postman读取csv文件,批量执行post请求

I want to send a postman HTTP POST. In this request, for key 'fisier', I like to attach a csv file. How this can be done?

https://i.stack.imgur.com/Pnkii.png

解决方案

This can be done using

Select the POST method and type the url

In the Body menu header, click on form-data check-box

In the key-value form that comes,

3.1 add the key as fisier

3.2 Choose the type as File from the dropdown near the key

3.3 A file chooser button opens, click it, borwse the file and upload it

3.4 Click on Send method to send the request