HTTP 100 Continue 响应的正确语法
对我来说,HTTP 1.1 RFC 和各种实现的最弱点之一是如何处理 100 个Continue 标头。
我在网上搜索了一段时间并查看了不同的实现。然而,有一件事我不确定。 100 Continue 消息的正确语法是什么?多个消息来源声称,这必须是单个响应行,没有任何其他标题行。但是,我在 RFC 2616 中找不到这一点。那么什么是正确的呢?
HTTP/1.1 100 Continue
或者
HTTP/1.1 100 Continue
[Additional Headers…]
?
For me, one of the weakest points of the HTTP 1.1 RFC and the various implementations around is how to deal with 100 Continue headers.
I searched on the web for a while and had a look at different implementations. However, there is one thing I'm not sure of. what is the correct syntax of a 100 Continue message? Several sources claim, that this must be a single response line without any further header lines. However, I can't find that in the RFC 2616 reflected. So what is right?
HTTP/1.1 100 Continue
or
HTTP/1.1 100 Continue
[Additional Headers…]
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RFC 2616,第 10.1 节:“此类状态代码表示临时响应,仅包含状态行和可选标头,并以空行终止。此类状态代码没有必需的标头...”
RFC 2616, Section 10.1: "This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, and is terminated by an empty line. There are no required headers for this class of status code. ..."