🔒 Closed How to use wget with Username and Password for FTP / HTTP Download

Status
Not open for further replies.

Draft

Administrator
Question. How do I use wget ftp / http client tool to download files from password protected web page?

Answer. wget command supports username and password combo for both FTP and HTTP file download.

Pass following option to wget command:
--user=userName: Your FTP/HTTP username
--password=passWord : Your HTTP/FTP password

These parameters can be overridden using the --ftp-user and --ftp-password options for FTP connections and the --http-user and --http-password options for HTTP connections.

Download a file called test.rar from phcorner.org:
Code:
$ wget --user=ftpuser --password='ftpPassword' ftp://phcorner.org/protected/test.rar
 
Dear Draft,

Since 2 years have passed since the last reply in this thread, I am locking it to prevent necroposting. Feel free to start a new thread or contact any forum staff if you want this to be reopened.

Thread closed.
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 2K
    Views
  • 2
    Participants
Last reply from:
Unknown user

Trending Topics

Online now

Members online
1,166
Guests online
2,425
Total visitors
3,591

Forum statistics

Threads
2,299,359
Posts
29,129,624
Members
1,200,983
Latest member
alehcrim
Back
Top