更改标题和保存文件 [英] Changing headers and saving file
问题描述
当我在example.com/name.php?id=1&image=33我可以看到一个jpg,但我不能保存它。在chrome开发工具,我可以看到jpg的路径,但我不能访问它直接与url。
When I am in example.com/name.php?id=1&image=33 I can see a certain jpg but I cant save it. In chrome dev tools I can see the path to the jpg but I cant access it directly with the url.
如何使用wget或curl(或php中的其他)来保存此文件?我想我需要卷曲jpg链接,但发送信息到路径的服务器,我可以看到的图像,但我只是不能这样做。
How can I use wget or curl (or other in php) to save this file? I think I would need to curl the jpg link but sending the info to the server of the path where I can see the image but I just cant do it.
如果有人知道如何做到这一点请详细说明,因为我认为我缺乏很多知识在这里。
If someone knows how to do this please explain with detailed info since I think I am lacking a lot of knowledge here.
推荐答案
但我无法储存
but I cant save it
您如何尝试保存它?您已尝试在浏览器中禁用Javascript
How are you trying to save it? Have you tried disabling Javascript in the browser
在chrome开发工具中,我可以看到jpg的路径....如何使用wget或curl
In chrome dev tools I can see the path to the jpg....How can I use wget or curl
通过复制成功的请求标头。
By replicating the successful request headers. It's further possible that you may have to replicate one of the preceding requests.
有人努力使您无法检索此内容 - 这表示您可能通过下载文件违反使用条款。
Someone has put some effort into making it difficult for you to retrieve this content - implying that you may be breaching the terms of use by downloading the file.
这篇关于更改标题和保存文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!