wgetを使用して、このURLでファイルをリモートでダウンロードしたいと思います。
https://test.mydomain.com/files/myfile.zip
サイトtest.mydomain.comにはログインが必要です。このコマンドを使用して別のサーバーにそのファイルをダウンロードしたいのですが、機能しません(ファイルを完全にダウンロードしません):
wget --user=myusername --password=mypassword https://test.mydomain.com/files/myfile.zip
私のユーザー名がmyusernameで、パスワードがmypasswordの場合、正しいwget構文は何でしょうか?
上記のコマンドを入力した後の戻りメッセージは次のとおりです。
Resolving test.mydomain.com (test.mydomain.com)... 123.456.789
Connecting to test.mydomain.com (test.mydomain.com)|123.456.789|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://test.mydomain.com/login/unauthorized [following]
--2013-01-30 02:01:32-- https://test.mydomain.com/login/unauthorized
Reusing existing connection to test.mydomain.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://test.mydomain.com/login [following]
--2013-01-30 02:01:32-- https://test.mydomain.com/login
Reusing existing connection to test.mydomain.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `myfile.zip'
私は何かが足りないのですか?助けてください。ありがとう。