0
0
I am trying to get the final download file name of an mp3 from a server, specifically audiotool.com
e.g. http://api.audiotool.com/track/haunt_opaque/mixdown.mp3
When you navigate to this url in a web browser it starts downloading a file with a name that contains the full info for the song
e.g. "opaqity - Haunt (opaque).mp3"
Is it possible to get the final download name from the top link using a standard linux command such as curl? I have already tried using a few redirect finder commands with curl, but none have worked.
Thank you for your help
what is nc -q for? I get this error when I try to run it in cygwin nc: unknown option -- q – Sun – 2014-09-27T07:45:16.817
From
man netcat
:-q
: after EOF on stdin, wait the specified number of seconds and then quit. If seconds is negative, wait forever. – Cyrus – 2014-09-27T07:51:22.020I guess it is not an option on the Cygwin distribution – Sun – 2014-09-27T07:52:30.037