【发布时间】:2013-08-27 05:19:16
【问题描述】:
有没有办法检索二进制数据文件作为 POST 请求的响应发送?
即您在某个页面中自定义您的包,然后单击提交和 HTTP 服务器响应此带有 ZIP 存档的 POST 请求。
我知道我可以使用 cURL 发送 POST 请求,但接下来要做什么?如何找回这个文件?
谢谢
【问题讨论】:
-
您尝试
file_put_contents()响应 curl 请求吗? -
不是 file_get_contents()?
-
如果要保存,就是file_put_contents(把输出放到一个文件中)。
标签: php post download httprequest httpresponse