왜 이 서버에서 wget을 다운로드할 수 없나요?

왜 이 서버에서 wget을 다운로드할 수 없나요?
  • win10을 사용하여
  • 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을 이스케이프해 보십시오 .

관련 정보