Welcome! Log In Create A New Profile

Advanced

handling cookie

Kuroishi Mitsuo
July 30, 2019 09:14PM
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
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

handling cookie

Kuroishi Mitsuo July 30, 2019 09:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 279
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready