<p>I use the agenzh's two modules<br><a href="http://wiki.nginx.org/HttpMemcModule">http://wiki.nginx.org/HttpMemcModule</a><br><a href="http://wiki.nginx.org/HttpEchoModule">http://wiki.nginx.org/HttpEchoModule</a><br>
 <br> <br><strong><font size="4">nginx configuration:<br></font></strong> </p>
<div>    location ~ "^/property/([0-9]+)" {<br>        charset utf-8;<br>        default_type 'text/javascript';<br>        echo -n "$arg_callback({\"property_$1\":\"";<br>        echo_location_async /statistic/operator "cmd=incr&key=property_$1&value=1";<br>
        echo -n "\")";<br>    }<br> <br>    # GET /statistic/operator?cmd=incr&key=property_23214&value=2<br>    # GET /statistic/operator?cmd=decr&key=property_23214&value=1<br>    location /statistic/operator {<br>
        internal;<br>        set $memc_cmd $arg_cmd;<br>        set $memc_key $arg_key;<br>        set $memc_value $arg_value;<br>        memc_pass statistics_server_pool;<br>        memc_cmds_allowed incr decr set get delete add;<br>
        add_header X-Memc-Flags 'Statistic Crement';<br>    }<br> <br> <br><strong><font size="4">Request URL:<br></font></strong> <br><a href="http://domain.net/property/23458?hi=231231&callback=himycallback201203455">http://domain.net/property/23458?hi=231231&callback=himycallback201203455</a><br>
 <br> <br><font size="4">The <font color="#ff0000">Unexpected</font>  incorrect Output: (Current Configuration)<br></font> <br> himycallback201203455({"property_23458":<font color="#ff0000">24<br>})<br></font> <br>
 <br>The new line after 24 is unexpected. and how can l delete the new line ?<br> <br><font size="4">I <font color="#3333ff">expected</font> the correct Output: ( how to configuration the nginx ? )<br></font> <br>himycallback201203455({"property_23458":24})</div>

<div> </div>
<div> </div>
<div> </div>