开发者

How to get a file location url from a php redirect link?

开发者 https://www.devze.com 2023-02-13 23:31 出处:网络
I have a link to a download to a file that calls a php script before it starts downloading the file. Is it possible to somehow get the location of the file that is to be downloaded directly (maybe thr

I have a link to a download to a file that calls a php script before it starts downloading the file. Is it possible to somehow get the location of the file that is to be downloaded directly (maybe through some browser plugin)?

I need this because I want to use wget on another system to download the file directly. A problem might be authentication because I need to provide a username and password, but getting the file location URL is the first step I think.

Tha开发者_开发问答nks,

Ivan


If the PHP script directly reads the file, no, you will never get the real location of that file.

If it redirects to it, yes, it's possible using the Firebug "net" tab or Live HTTP headers extension.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号