问题描述
我正在使用IIS作为媒体服务器的DLNA Server。某些DLNA客户端发送带有范围标头的http HEAD
请求:
I am working on a DLNA Server using IIS as Server for media. Some DLNA Client sends a http HEADrequest with a range Header :
Command: HEAD
+ URI:/ RicDLNA/Streamer.ashx?media=/Videos/Guca%20Distant%20Trumpet/Gucha%20Distant%20Trumpet。 mp4
ProtocolVersion:HTTP / 1.1
主机:192.168.1.100
范围:bytes = 0-
transferMode.dlna.org:流式传输
HeaderEnd:CRLF
+ URI: /RicDLNA/Streamer.ashx?media=/Videos/Guca%20Distant%20Trumpet/Gucha%20Distant%20Trumpet.mp4 ProtocolVersion: HTTP/1.1 Host: 192.168.1.100 range: bytes=0- transferMode.dlna.org: Streaming HeaderEnd: CRLF
我只回复Accept-Ranges Bytes。但IIS发出状态码416错误。看起来此错误状态阻止客户端继续。
I respond only with "Accept-Ranges Bytes". But IIS delivers a statuscode 416 error. It looks that this error Status prevents the client to continue.
- 是否可以在HEAD请求中发送这样的范围标题?
- 我该怎么办?响应客户端知道支持范围并且调用IIS生成的状态码416.
- 是否有可能覆盖状态良好的IIS状态码?
推荐答案
在部分你可以找到摘录
对我而言,这意味着:你可以做带有HEAD命令的范围请求,但您的服务器必须忽略它。
To me this means as much as : you can make a range-request with a HEAD command, but your server must ignore it.
这篇关于带有范围标题的HTTP HEAD请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!