从用户的post数据中,取出某个字段做在sticky模块中做hash,我如何在sticky模块中取到data值
存数据使用
location /foo {
# ensure client_max_body_size == client_body_buffer_size
client_max_body_size 100k;
client_body_buffer_size 100k;
set_form_input $data; # read "data" field into $data
set_form_input $foo foo; # read "foo" field into $foo
}
debug日志
2013/10/16 07:13:52 [debug] 8109#0: *1 http client request body preread 8
2013/10/16 07:13:52 [debug] 8109#0: *1 http request body content length filter
2013/10/16 07:13:52 [debug] 8109#0: *1 http body new buf t:1 f:0 000000000230812E, pos 000000000230812E, size: 8 file: 0, size: 0
2013/10/16 07:13:52 [debug] 8109#0: *1 http form_input post read request body
2013/10/16 07:13:52 [debug] 8109#0: *1 http form_input has read the request body in one run
2013/10/16 07:13:52 [debug] 8109#0: *1 rewrite phase: 4
2013/10/16 07:13:52 [debug] 8109#0: *1 http script value: "data"
2013/10/16 07:13:52 [debug] 8109#0: *1 http script value (post filter): "xxx"
2013/10/16 07:13:52 [debug] 8109#0: *1 http script set $data
2013/10/16 07:13:52 [debug] 8109#0: *1 post rewrite phase: 5
其中
data的值 就是xxx,我如何在 ngx_http_sticky_misc_set_cookie中取到data