哪些浏览器发送期望:100-继续头? [英] Which browsers send the expect: 100-continue header?

查看:90
本文介绍了哪些浏览器发送期望:100-继续头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在HTTP / 1.1规范允许客户端发送期望:100-继续头的大型有效载荷的要求(的 8.2.3使用100(继续)状态的 - 超文本传输​​协议 - HTTP / 1.1 - RFC2616

The HTTP/1.1 spec allows for clients to send an Expect: 100-continue header for large request payloads (8.2.3 Use of the 100 (Continue) Status - Hypertext Transfer Protocol -- HTTP/1.1 - RFC2616).

头已发送后,这将暂停请求,并允许根据这些标题服务器拒绝。

This will pause the request after the headers have been sent and allow the server to reject it based on those headers.

如果这些头文件没有表明一个坏的请求(例如过大的的Content-Length ),然后将其与 100的响应继续状态栏,允许客户端进行。在这一点上,客户端发送请求主体。

If those headers did not indicate a bad request (e.g. a too large Content-Length), then it responds with a 100 Continue status line, allowing the client to proceed. At this point the client sends the request body.

哪些浏览器实际上支持这项工作,以及在何种条件下,它们将发送指望头?

Which browsers actually support this, and under which conditions will they send the expect header?

推荐答案

我知道,卷曲做这行的每个的POST请求。刚刚跑过来,前一段时间。

I know that curl does this for every post request. Was just running over that some time ago.

我还测试,在结合PHP 我怎么可以停止使用100继续卷曲?

I also tested that in conjunction with PHP in "How can I stop cURL from using 100 Continue?".

这篇关于哪些浏览器发送期望:100-继续头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆