URGENT! How to resolve a URL to get actual downloadable file
Hello guys. I would be grateful if someone could help me on how to resolve a download URL. What I mean is, usually certain sites have the URL to a file such as an mp3, for download in this manner:
Code:
http://www.bigxgh.com/wp-content/plugins/download-monitor/download.php?id=2364
without the file name at the end such as:
Code:
http://www.bigxgh.com/wp-content/plugins/download-monitor/themusicfile.mp3
but however, download managers are able to grab the actual file in any case.
Can any smart person here be able to help on this issue.
I will be very grateful. Thank you. :)
Re: URGENT! How to resolve a URL to get actual downloadable file
No they aren't... the download manager is reacting to the mime-type of the response... most web browsers are set to download mime-type multimedia/mp3 ... on the server side, often the file itself doesn't exist, or exists outside of the public website structure, it pulls it from where it is (db or file structure) and generates a stream and sends it back to the client, with the proper mime header on it.
-tg
Re: URGENT! How to resolve a URL to get actual downloadable file