Search code examples
urlunixdownloadwget

How to download a file from HTTP URL?


I know how to use wget to download from FTP but I couldn't use wget to download from the following link:
http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE46130&format=file

If you copy and paste it in the browser, it'll start to download. But I want to download it to our server directly so I don't need to move it from my desktop to the server. How do I do it?

Thanks!


Solution

  • This is what I did:

    wget -O file.tar "http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE46130&format=file"