Is there a way to get a redirected url either with a unix command or in perl.
I am writing a perl script to download mp3 files using curl. The url I start with redirects to another url. Currently I am manually entering the url into a browser and then copying the redirected url and entering that into my script.
I am a perl novice and my knowledge of the curl command is limited to:
curl -O http:blahblahblah.mp3.
The reason I am write a perl script is that there are many mp3 files with the url containing a file number which I am modifying in the script.
any constructive help is greatly appreciated. thanks john