Results 1 to 3 of 3

Thread: URGENT! How to resolve a URL to get actual downloadable file

  1. #1
    Lively Member
    Join Date
    Nov 07
    Location
    Ghana
    Posts
    120

    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.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 02
    Posts
    21,659

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.-I also subscribe to all threads I participate, so there's no need to pm when there's an update.*
    *Proof positive that searching the forums does work: View Thread *
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *
    * Use Offensive Programming, not Defensive Programming. * On Error Resume Next is error ignoring, not error handling(tm).
    "There is a major problem with your code, and VB wants to tell you what it is.. but you have decided to put your fingers in your ears and shout 'I'm not listening!'" - si_the_geek on using OERN

  3. #3
    Lively Member
    Join Date
    Nov 07
    Location
    Ghana
    Posts
    120

    Re: URGENT! How to resolve a URL to get actual downloadable file

    Ok. thanx bro.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •