I want to avoid ever getting chunked encoded HTTP server response from (conforming) HTTP server. I am reading RFC 2616 section "14.39 TE" and it seems to me that I could avoid it by specifying TE: chunked;q=0
. If I cannot avoid the chunked encoding, I want do avoid the trailers. Will specifying TE: trailers;q=0
work?
相关问题
- Angular RxJS mergeMap types
- Google Apps Script: testing doPost() with cURL
- How to instantiate Http service in main.ts manuall
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- Serving data with “transfer-encoding: chunked” on
相关文章
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- Is there a size limit for HTTP response headers on
- Is a unicode user agent legal inside an HTTP heade
- git: retry if http request failed
- What is the definition of HTTP_X_PURPOSE?
- Flutter - http.get fails on macos build target: Co
- Why does Google Chrome NOT use cached pages when I
- C# HttpClient.SendAsync always returns 404 but URL
From rfc2616 - Hypertext Transfer Protocol -- HTTP/1.1 in section 3.6.1 Chunked Transfer Coding:
This is still the case in the updated RFC 7230 - Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing in section 4.1. Chunked Transfer Coding although in a slightly different wording:
So if you want to be conform to HTTP/1.1, you will have to accept chunked encoding.
Update
As for the trailers: I think if you don't send a
TE
header field in your request, a conforming server shouldn't send you any trailers. If it still sends trailers you are probably save to ignore them (again section 3.6.1):