wgetのオプションで「--http-user=」と「--http-passwd=」を併用すればよい。例えばexample.comドメインからゲットしたい場合,次のような指定になる。
$ wget http://example.com/xxxxxxxx.tar.Z --http-user=[ユーザー名] --http-passwd=[パスワード] |
・関連Tips
.htaccessで秘密の認証ページを作る
Copyright © ITmedia, Inc. All Rights Reserved.