Hi,

I'm developing a module that handles the cookie header for
Nginx.

It's kind of awkward though, the cookie sometimes contains the
same key name. For example,

  Cookie: a=xxx; a=yyy

Currently I use ngx_http_parse_multi_header_lines() like below.

  ngx_str_t buf;
  ngx_str_t key = ngx_string ("a");
  ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &key, &buf);

But the function only seems to be able to get the 1st one.

Is there any way to get the 2nd value? And any idea is welcome.

Thanks in advance.

-- 
Kuroishi Mitsuo
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to