1

I was about to test chunked transfer encoding with the following simple Perl script:

print "Content-type: text/plain\n";
print "Transfer-Encoding: chunked\n\n";
print "11\n\n";
print "0123456789ABCDEF\n";
print "11\n\n";
print "0123456789ABCDEF\n";
print "\n\n";

But I experience a browser error

Error 321 (net::ERR_INVALID_CHUNKED_ENCODING): Unknown error.

What is wrong with the above code?

4

1 回答 1

2

最后一个(零大小)块丢失。

于 2013-06-17T15:49:18.223 回答