なぜwgetはこのサーバーからダウンロードできないのでしょうか?

なぜwgetはこのサーバーからダウンロードできないのでしょうか?
  • Windows10を使用
  • IDMとChromeでリンクをダウンロードできます

このエラーが発生します。何か問題があるのでしょうか

C:\Users\alihani>cd C:\wget-1.19.1-win64

C:\wget-1.19.1-win64>wget http://rgwha1.elcld.com/Public/1996747932?AWSAccessKeyId=ZTCEWB8UCH1HR47ZQJYT&Expires=1510149040&response-cache-control=public%2C%20max-age%3D2592000&response-content-disposition=attachment%3B%20filename%3D%22%27Til%20Death%20Season%201.rar%22&response-content-encoding=System.Text.UTF8Encoding&response-content-type=application%2Foctet-stream&Signature=FYX3YEWDXD%2Bfd5X98fzrQEjZ1vw%3D

--2017-10-09 16:52:07--  http://rgwha1.elcld.com/Public/1996747932?AWSAccessKeyId=ZTCEWB8UCH1HR47ZQJYT
Resolving rgwha1.elcld.com (rgwha1.elcld.com)... 192.168.222.216
Connecting to rgwha1.elcld.com (rgwha1.elcld.com)|192.168.222.216|:80... connected.

HTTP request sent, awaiting response... 400 Bad Request
2017-10-09 16:52:08 ERROR 400: Bad Request.

'Expires' is not recognized as an internal or external command,
operable program or batch file.

'response-cache-control' is not recognized as an internal or external command,
operable program or batch file.

'response-content-disposition' is not recognized as an internal or external command,
operable program or batch file.

'response-content-encoding' is not recognized as an internal or external command,
operable program or batch file.

'response-content-type' is not recognized as an internal or external command,
operable program or batch file.

'Signature' is not recognized as an internal or external command,
operable program or batch file.

答え1

&は、Windows シェルでコマンドを区切るために使用されます。コマンドでは、以下を実行します。

C:\wget-1.19.1-win64> wget http://rgwha1.elcld.com/Public/1996747932?AWSAccessKeyId=ZTCEWB8UCH1HR47ZQJYT
C:\wget-1.19.1-win64> Expires=1510149040
C:\wget-1.19.1-win64> response-cache-control=public%2C%20max-age%3D2592000
[...]
  • リンクが切り捨てられたため、リクエストが無効になりました (エラー コード 400 - 不正なリクエスト)
  • シェルはExpires、、response-cache-controlなどが何を意味するのか分かりません。

&シェルが を区切り文字ではなく URL の一部として認識するように、URL をエスケープしてみてください。

関連情報