IIS7 및 IIS8에서 작동하도록 Content-Range 요청을 얻을 수 없습니다.

IIS7 및 IIS8에서 작동하도록 Content-Range 요청을 얻을 수 없습니다.

IIS7 및 IIS8 서버에 동일한 종류의 요청을 하고 있는데 계속 이런 메시지가 나타납니다.416응답

$ curl-7.23.1-win64-ssl-sspi>curl -H Range:bytes=16- -I http://my.local.host/dotnetrocks_0813_syme_battochi.mp3

HTTP/1.1 416 Requested Range Not Satisfiable  
Content-Length: 45740117  
Content-Type: audio/mpeg  
Last-Modified: Wed, 24 Oct 2012 09:14:29 GMT  
Accept-Ranges: bytes  
ETag: "97ab9ff8c7b1cd1:0"  
Server: Microsoft-IIS/8.0  
X-Powered-By: ASP.NET  
Date: Tue, 30 Oct 2012 18:54:31 GMT  
Content-Range: bytes */0

범위가 분명히 파일 크기 내에 있지만 여전히206응답. 내가 여기서 무엇을 놓치고 있는 걸까요?

답변1

나는 같은 문제가 있었고 대답을 찾았습니다.https://stackoverflow.com/questions/18882776/curl-default-get-request-isnt-recognized-by-php.

개요: 헤더 전용 옵션을 지정하면 -I요청 메소드 HEAD가 생성됩니다. 대신 -X옵션을 지정하여 GET을 강제 실행하세요.

예: curl -H Range:bytes=16- -I -X GET http://my.local.host/dotnetrocks_0813_syme_battochi.mp3

관련 정보