Download the file, save the file without changing its name

curl --remote-name "https://example.com/linux-distro.iso"

rename file

curl --remote-name "http://example.com/index.html" --output foo.html
Comments