HTTP 1.1 - 客户端是否可以请求转移不是“分块”? [英] HTTP 1.1 - Can a client request that transfers not be "chunked"?

查看:234
本文介绍了HTTP 1.1 - 客户端是否可以请求转移不是“分块”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTTP 1.1客户端是否可以设置一个标头值,表明对请求的响应不应该被分块?或者是防止这种情况的唯一方法是发送HTTP 1.0请求?我试过谷歌搜索,但我能找到的方法是禁用HTTP 1.1服务器上的分块传输,所以我猜这在客户端是不可能的,但我想我还是会问。

Is it possible for a HTTP 1.1 client to set a header value that indicates the responses to requests should not be chunked? Or is the only way to prevent this, is to send a HTTP 1.0 request? I've tried googling around, but all I can find is ways to disable chunked transfers on HTTP 1.1 servers, so I am guessing it is not possible on a client, but I thought I'd ask anyways.

推荐答案

在HTTP(从HTTP / 1.1开始)中,收件人必须支持分块编码。请参见 http: //greenbytes.de/tech/webdav/draft-ietf-httpbis-p1-messaging-26.html#rfc.section.4.1.p.4

In HTTP (starting with HTTP/1.1), recipients MUST support chunked encoding. See http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p1-messaging-26.html#rfc.section.4.1.p.4.

这篇关于HTTP 1.1 - 客户端是否可以请求转移不是“分块”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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