Take the tour ×  This question explains how to do it with curl.
The accepted answer also points out that  If wget is available,
that would be far simpler.  I looked through mam wget but the
got lost in there, and didn't find an option to follow
redirects.  share|improve this question add comment  1 Answer
up vote 1 down vote accepted  wget follows redirects
automatically. Just give the URL as an argument  wget 'http://do
wnloads.sourceforge.net/project/romfs/genromfs/0.5.2/genromfs-
0.5.2.tar.gz' share|improve this answer Oh. I had given it the
wrong url and wandering why it is not working. Thanks a lot. – 
Vorac Aug 16 at 8:18 Sourceforge URL's often need to be quoted
due to the &'s in them as well (pre redirect) –  mindthemonkey
Aug 16 at 15:46 add comment  Your Answer