Is using the HTTP Content-Range header appropriate when sending a file in chunks using the POST method?

后端 未结 2 1142
时光说笑
时光说笑 2021-01-07 01:13

I am working on an existing Silverlight file uploader that breaks files into multiple chunks and transmits the file using multiple HTTP requests.

Currently, it sends

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-07 01:50

    Yes.

    RFC 2616 (HTTP 1.1), Section 14 begins by stating:

    For entity-header fields, both sender and recipient refer to either the client or the server, depending on who sends and who receives the entity.

    Other than that, Section 14.16, which defines the Content-Range header, does not appear to contain any language limiting its use to either the request or response.

提交回复
热议问题