Tool for sending multipart/form

I am currently using the Chrome Addon Postman - REST Client to easily create POST / GET request and it's quite a nice tool.

Now I want to debug an upload script and I am looking for a tool to make requests encoded as "multipart/form-data" so that I can send also a file.

Thanks for your help


UPDATE: I have created a video on sending multipart/form-data requests to explain this better.


Actually, Postman can do this. Here is a screenshot

Newer version : Screenshot captured from postman chrome extension 在这里输入图像描述

Another version

在这里输入图像描述

Older version

在这里输入图像描述

Make sure you check the comment from @maxkoryukov

Be careful with explicit Content-Type header. Better - do not set it's value, the Postman is smart enough to fill this header for you. BUT, if you want to set the Content-Type: multipart/form-data - do not forget about boundary field.


Here is the screen shot of uploading file (multipart) using PostMan. The common problem is you manually put Content-Type: {multipart/form-data} into the header of the post request. Actually, you shouldn't, PostMan will do it for you.

身体的一部分

Don't 常见错误

should be 应该从标题中删除内容类型

Hope it helps

链接地址: http://www.djcxy.com/p/22214.html

上一篇: 数据(服务器到服务器)

下一篇: 用于发送multipart / form的工具