1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

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

Discussion in 'Linux Distributions' started by Draft, Sep 5, 2015.

  1. Draft

    Draft Administrator Staff Member 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.net:
    Code:

       Sorry you need to Register / Login to see this Codes!    

     
    mylabs26, xSilent, airmond and 2 others like this.
Tags / Keywords: