小编Arc*_*yal的帖子

如何从 Postman Response 下载附件

我有一个 API,它发送具有以下标头的响应:

Headers(8)
Test Results(1/1)
Status:200 OK
Time:5890 ms
Size:1.24 MB
Access-Control-Allow-Origin ?*
Cache-Control ?no-cache
Content-Disposition ?attachment; filename=Report.csv
Content-Length ?1298149
Content-Type ?text/csv
Date ?Fri, 22 Jun 2018 08:50:05 GMT
Expires ?-1
Pragma ?no-cache
Run Code Online (Sandbox Code Playgroud)

我想下载附件文件'Report.Csv'

谁能建议我如何通过脚本或纽曼做到这一点

postman newman postman-collection-runner

2
推荐指数
1
解决办法
2万
查看次数