How to use Wget to download a file needs password for downloading

tipsYou know, wget is a essential download tool in command line mode.But how to use wget to download a file which requires  password before downloading?Actually,it is not difficult,the key is we must use "-user" and "-password"these 2 options.please see following sample :

$ wget –user=username –password=’password’ http://address/download/foo.mp3

username = your username, 'password' ='your password' .

Creative Commons License's blog posts is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License