HTTP POST: content-length header required?

后端 未结 1 1190
余生分开走
余生分开走 2020-12-16 09:17

I\'m currently trying to optimize http-based data transfer between several applications. Our current approach, downloading first and then creating the post-request, obviousl

相关标签:
1条回答
  • 2020-12-16 09:52

    Depends what you mean by optional. If you mean that you can just omit the header anytime you like then no, it is not optional. The HTTP spec has very specific rules when to use that header. There are different ways of sending the data if you don't know the length. Chunked encoding for example.

    4.4 Message Length

    0 讨论(0)
提交回复
热议问题