<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(scrollbar.css); --></STYLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE> BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em} body{FONT-SIZE:12.1pt; COLOR:#001; FONT-FAMILY:宋体,serif;} </STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.23580"><BASE
target=_blank></HEAD>
<BODY
style="LINE-HEIGHT: 1.3; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px"
marginheight="0" marginwidth="0"><STATIONERY>
<DIV><FONT color=#000000 size=3 face=宋体><SPAN
style="TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: medium Arial; WHITE-SPACE: normal; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">Hi
All,</SPAN><BR
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: medium Arial; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); CLEAR: both; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"></FONT><FONT
color=#000000 size=3 face=宋体><BR
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: medium Arial; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); CLEAR: both; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><SPAN
style="TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: medium Arial; WHITE-SPACE: normal; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">When
i try to use the directive "chunked_transfer_encoding" to control the
encoding type of output data, it failed to output the chunked data
even thougth i turned on the directive as "chunked_transfer_encoding
on;".</SPAN><BR
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: medium Arial; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); CLEAR: both; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><BR
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: medium Arial; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); CLEAR: both; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
size=4 face=Arial>Here is the simple example of my
config==></FONT></FONT></DIV><FONT color=#000000 size=3 face=宋体>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
size=4 face=Arial>location /chunked {</FONT></DIV>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
size=4 face=Arial> root /;</FONT></DIV>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
size=4 face=Arial> chunked_transfer_encoding
on;</FONT></DIV>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
size=4 face=Arial> return 200 "hello\n";</FONT></DIV>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
size=4 face=Arial>}</FONT></DIV>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
face=Arial><BR><FONT size=4></FONT></FONT></DIV>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
size=4 face=Arial>location /unchunked {</FONT></DIV>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
size=4 face=Arial> root /;</FONT></DIV>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
size=4 face=Arial> chunked_transfer_encoding
off;</FONT></DIV>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
size=4 face=Arial> return 200 "world\n";</FONT></DIV>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
size=4 face=Arial>}</FONT></DIV>
<DIV><BR
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: medium Arial; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); CLEAR: both; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><SPAN
style="TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: medium Arial; WHITE-SPACE: normal; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">And
here is the results of the test bu curl.</SPAN></DIV><SPAN
style="TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: medium Arial; WHITE-SPACE: normal; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">
<DIV> </DIV>
<DIV><FONT size=4 face=Arial>curl -i "localhost:8345/chunked"</FONT></DIV>
<DIV><FONT size=4 face=Arial></FONT> </DIV>
<DIV><FONT size=4 face=Arial>HTTP/1.1 200 OK</FONT></DIV>
<DIV><FONT size=4 face=Arial>Server: nginx/1.7.7</FONT></DIV>
<DIV><FONT size=4 face=Arial>Date: Wed, 19 Nov 2014 02:26:14 GMT</FONT></DIV>
<DIV><FONT size=4 face=Arial>Content-Type: application/octet-stream</FONT></DIV>
<DIV><FONT size=4 face=Arial>Content-Length: 6</FONT></DIV>
<DIV><FONT size=4 face=Arial>Connection: keep-alive</FONT></DIV>
<DIV><FONT face=Arial><BR><FONT size=4></FONT></FONT></DIV>
<DIV><FONT size=4 face=Arial>hello</FONT></DIV></DIV>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><FONT
face=Arial><BR><FONT size=4></FONT></FONT></DIV>
<DIV
style="TEXT-ALIGN: left; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; FONT: 14px/21px 微软雅黑; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">
<DIV><FONT size=4 face=Arial>curl -i "localhost:8345/unchunked"</FONT></DIV>
<DIV><FONT face=Arial><BR><FONT size=4></FONT></FONT></DIV>
<DIV><FONT size=4 face=Arial>HTTP/1.1 200 OK</FONT></DIV>
<DIV><FONT size=4 face=Arial>Server: nginx/1.7.7</FONT></DIV>
<DIV><FONT size=4 face=Arial>Date: Wed, 19 Nov 2014 02:26:59 GMT</FONT></DIV>
<DIV><FONT size=4 face=Arial>Content-Type: application/octet-stream</FONT></DIV>
<DIV><FONT size=4 face=Arial>Content-Length: 6</FONT></DIV>
<DIV><FONT size=4 face=Arial>Connection: keep-alive</FONT></DIV>
<DIV><FONT face=Arial><BR><FONT size=4></FONT></FONT></DIV>
<DIV><FONT size=4 face=Arial>world</FONT></DIV></DIV>
<DIV> </DIV>
<DIV>======================</DIV>
<DIV>i am expecting that chunked data will be obtained when the request goes
into the <EM>chunked</EM> location, however, the directive seems doesn't work as
expected.<BR class=Apple-interchange-newline></DIV></SPAN>
<DIV><BR
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: medium Arial; WHITE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(0,0,0); CLEAR: both; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px"><SPAN
style="TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: medium Arial; WHITE-SPACE: normal; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">We
are using nginx as web server, s</SPAN><SPAN
style="TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: medium Arial; WHITE-SPACE: normal; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">o could
anyone explain that and suggest solution to resolve this
issue?</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial Black">Best regards,</FONT></DIV>
<DIV> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2
face=Verdana>2014-11-19</FONT></DIV><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" id=SignNameHR align=left SIZE=2>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN
id=_FlashSignName>weiyuefei</SPAN></FONT></DIV></STATIONERY></BODY></HTML>