Home > Software engineering > You who are familiar with the language of RFC documents, can help to translate them, the following i
You who are familiar with the language of RFC documents, can help to translate them, the following i
Time:10-12
This seems to be about HTTP chunk described in RFC (from) online, but I really don't understand what it is, who can use natural language to translate them? Or no actual example, thank you!
Chunked - Body=* the chunk The last - the chunk Trailer CRLF
[the chunk chunk=the chunk - size - the extension] CRLF The chunk - data CRLF The chunk - size=1 * HEX The last - the chunk=1 * (" 0 ") [the chunk - the extension] CRLF
The chunk - the extension=* (";" The chunk - ext - name ["="the chunk - ext - val]) The chunk - ext - name=token The chunk - ext - val=token | quoted - string The chunk - data=https://bbs.csdn.net/topics/chunk-size (OCTET) Trailer=* (entity - the header CRLF)
Best can for an example and a description of it,
CodePudding user response:
The HTTP when block transfer encoding is used, is to describe the format of the data, is Chunked - the Body into the encoded data, and described above points four parts can know, * the chunk, the last - the chunk, trailer, CRLF these four connected, [the chunk chunk=the chunk - size - the extension] CRLF The chunk - data CRLF This then describes the chunk format, according to describe the size, then \ r \ n, followed by as long as the size of the data, then the \ r \ n The chunk - size=1 * HEX number are banned says size 16, said, for example: the length of the 1120, do you want us to use hexadecimal distinguish each were 31 30, 31 and 32. Last - the chunk=1 * (" 0 ") [the chunk - the extension] CRLF last chunk length 0, described here is no data, you will be received 30 0 0 d a,
Trailer is attached header The chunk - the extension is communication consultation,
Detailed you can Google it, I didn't realize this the httpserver support