Try out curl -o and -O options.