download - How to find the original address of a file from dynamic URL?

08
2014-07
  • Roh

    In some cases, when you want to download a file from a website, you can't see the original address of the file. for example look this URL:

    image

    How can I find the direct URL of the file?

    Is there any approach or program to find the original(direct) URL?

  • Answers
  • VMai

    In most of those cases there isn't a "direct URL" of the file. Either the file will be created dynamically or it is located in a directory that isn't accessible via an url. A script (here download.do) reads the file and passes the content through to the requesting browser.


  • Related Question

    firefox - How to download a URL as a file?
  • Questioner

    A website URL has "hidden" some MP3 files by embedding them as Shockwave files, as follows.

    <span class="caption"><!-- Odeo player --><embed src="http://odeo.com/flash/audio_player_tiny_gray.swf"quality="high" name="audio_player_tiny_gray" align="middle" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" flashvars="valid_sample_rate=true external_url=http://podcast.cbc.ca/mp3/sundayeditionstream_20081125_9524.mp3" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></span>
    

    How can I download the files for off-line listening?

    I've found two methods:

    1. The Stack Overflow Method

    Create a new local HTML file with just the links, for example:

    <a href="http://podcast.cbc.ca/mp3/sundayeditionstream_20081125_9524.mp3" rel="nofollow">Sunday Edition 25Nov2008</a>
    

    Open the file in the browser, right click the link and File > Save Link As.

    2. The Super User Method

    Install the Firefox addin Iget. (Be sure to use the right version for your Firefox version.)

    Tools > Downloads > Enter URL in the field.

    Are there any other ways?


  • Related Answers
  • Seasoned Advice (cooking)

    On Linux, use 'wget' on the command line:

    wget http://podcast.cbc.ca/mp3/sundayeditionstream_20081125_9524.mp3
    

    If you want a similar tool on Windows, you could install wget via Cygwin or use one of the GNU Win32 ports.

    On Mac OS X, there's cURL, which appears to have a Windows build.