接口测试工具postman测试文件下载接口

官方文档有说明:
If your API endpoint returns an image, Postman will detect and render it automatically. For binary response types, you should select “Send and download” which will let you save the response to your hard disk. You can then view it using the appropriate viewer. This gives you the flexibility to test audio files, PDFs, zip files, or anything that the API throws at you.

在Send按钮那里可以选择Send and download
这里写图片描述

发布了130 篇原创文章 · 获赞 66 · 访问量 30万+

猜你喜欢

转载自blog.csdn.net/zhuzj12345/article/details/105122270