關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • wget 下載密碼保護檔案

    Posted on May 6th, 2008 Sam Tang 1 comment

    wget 是很好用的 command line 下載工具,如果遇到需要密碼才可以下載的檔案,wget 的選項 –user=username 及 –password=password 便可解決,這兩個選項支援 HTTP 及 FTP 連線,用法也很簡單:

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

     

    One response to “wget 下載密碼保護檔案”

    1. 謝謝老大, 非常實用啊

    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word