alisonjoe / clearsilver

Automatically exported from code.google.com/p/clearsilver
Other
0 stars 0 forks source link

cgi_cookie_set does not work #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cgi_cookie_set(cgi, "cgi_cookie_test", "hellocgi", "/", "localhost", "Sat. 
06 Oct 2013 08:30:00", 1, 0)
2. http://localhost/cgi-bin/hellocs
3. Set-Cookie: cgi_cookie_test=hellocgi; path=/; expires=Sat. 06 Oct 2013 
08:30:00; domain=localhost Content-Type: text/html 
HTTP_COOKIE 
SESS29af1facda0a866a687d5055f2fade2c=EaXgcoenUyy9_AvsvrFvniUv6PjfS2n6aS3iunlvLu0
; pla3412=123456; pla3412_salt=lt260tdkeqc

What is the expected output? What do you see instead?
there is cgi_cookie_set in HTTP_COOKIE, but nope.

What version of the product are you using? On what operating system?
clearsilver-0.10.5
Linux 3.5.2-gentoo x86_64 Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz 
GenuineIntel GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by xiangzha...@gmail.com on 28 Sep 2012 at 4:43

GoogleCodeExporter commented 9 years ago
I think I need more information, like the exact code involved.

Original comment by blon...@gmail.com on 28 Sep 2012 at 9:43

GoogleCodeExporter commented 9 years ago
Thank Brandon, I attached the source code, please show me the magic :)

Original comment by xiangzha...@gmail.com on 29 Sep 2012 at 1:24

Attachments:

GoogleCodeExporter commented 9 years ago
I simply use printf("Set-Cookie:name=xzhai;\r\n");

Then it worked in my chrome browser ^_^

Original comment by xiangzha...@gmail.com on 29 Sep 2012 at 3:00