I know I can use the following 2 commands to download a file:
curl -O example.com/file.zip
curl -o mydir/file.zip example.com/file.zip
wget -O mydir/file.zip example.com/file.zip
curl -dir mydir example.com/file.zip
The following line will download all the files to a directory mentioned by you.
wget -P /home/test www.xyz.com
Here the files will be downloaded to