0

仕様によると、チャンク動作が機能するには Transfer-Encoding が必要です。

ただし、デバッグ中に、ヘッダーが応答に含まれていない場合、クライアントはそれを問題なく処理しているように見えます。

tcpdump トレースはおおよそ次のとおりです。

Transfer-Encoding ヘッダーなし:

HTTP GET equest
HTTP 200 ok response
a list of Continuation or non-http traffic, of various sizes
8258 Continuation or non-HTTP traffic
16450 Continuation or non-HTTP traffic

Transfer-encoding ヘッダー付き:

HTTP GET equest
HTTP 200 ok response
a list of Continuation or non-http traffic, of same size 
8266 Continuation or non-HTTP traffic

client(curl) が transfer-encoding ヘッダーに依存していないように見えますか? もしそうなら、それはどのように知っていますか?

ありがとう、

4

0 に答える 0