I have 2 different servers, I put my mp3 files in server1, and I am testing to download them from server2 using the wget tool:
wget "http://www.example.com/Path-to-mp3-file"
I have 2 results:
1) If I download from server1 (where files are), it downloads
2) If I download from server2, it says 404
wget "http://www.example.com/Path-to-mp3-file"
--2016-06-15 10:08:06-- http://www.example.com/Path-to-mp3-file
Resolving www.example.com (www.example.com)... SERVER2-IP
Connecting to www.example.com (www.example.com)|SERVER2-IP|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-06-15 10:08:06 ERROR 404: Not Found.
EDIT
I place the -o filename.mp3 and I can download it now, what is the difference between both commands:
wget "http://www.example.com/Path-to-mp3-file"
and
wget -o filename.mp3 "http://www.example.com/Path-to-mp3-file"