是否可以下载使用HTTP POST文件? [英] Is it possible to download a file with HTTP POST?

查看:141
本文介绍了是否可以下载使用HTTP POST文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以下载使用HTTP POST文件? 我知道,获取的方式(windows.location),但对我来说,有很多参数的,应传递到服务器

Is it possible to download a file with HTTP POST? I know the "Get" way(windows.location), but in my case, there are a lot of param that should be passed to server

推荐答案

是的,一个POST请求的其余部分可以直接在浏览器下载文件。该文件的内容将被发送作为HTTP响应,同在GET情况

Yes, the rest of a POST request can direct a browser to download a file. The file contents would be sent as the HTTP response, same as in the GET case.

这篇关于是否可以下载使用HTTP POST文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆