Save remote file that pushes headers to force download

前端 未结 2 1788
孤独总比滥情好
孤独总比滥情好 2021-01-17 00:37

I can download remote files using PHP but how do you download from a link that pushes headers out? I mean, you can click on some links and it will force a download and prese

2条回答
  •  爱一瞬间的悲伤
    2021-01-17 00:57

    You can do it the same way as you download your remote files. Those “force download” header values just tell user agents that want to display the data inline to download them instead. But it makes no difference for your script as it cannot display the data.

提交回复
热议问题