Squid 配置指令 force_request_body_continuation
可用版本:
此指令在 Squid 的 v8 版本中不可用。
对于 v5 之前的旧版本,请参阅以上链接页面。
配置详情
| 选项名称 | force_request_body_continuation |
|---|---|
| 替代 | |
| 要求 | |
| 默认值 | 拒绝,除非在 squid.conf 中存在规则。 |
| 建议配置 |
|
This option controls how Squid handles data upload requests from HTTP and FTP agents that require a "Please Continue" control message response to actually send the request body to Squid. It is mostly useful in adaptation environments. When Squid receives an HTTP request with an "Expect: 100-continue" header or an FTP upload command (e.g., STOR), Squid normally sends the request headers or FTP command information to an adaptation service (or peer) and waits for a response. Most adaptation services (and some broken peers) may not respond to Squid at that stage because they may decide to wait for the HTTP request body or FTP data transfer. However, that request body or data transfer may never come because Squid has not responded with the HTTP 100 or FTP 150 (Please Continue) control message to the request sender yet! An allow match tells Squid to respond with the HTTP 100 or FTP 150 (Please Continue) control message on its own, before forwarding the request to an adaptation service or peer. Such a response usually forces the request sender to proceed with sending the body. A deny match tells Squid to delay that control response until the origin server confirms that the request body is needed. Delaying is the default behavior. |
|
