This question relates to the command line version of cURL.
I\'m trying to download a file from a CGI script.
http://example.com/perl/dl.pl?ID=2
curl http://example.com/dl.php?file=3123123 -O -J
if server uses redirection use these:
--location-trusted --max-redirs 10