* cgi:make-cookie
@ 2004-04-13 22:36 Brian S McQueen
2004-04-14 6:51 ` cgi:make-cookie Thien-Thi Nguyen
0 siblings, 1 reply; 2+ messages in thread
From: Brian S McQueen @ 2004-04-13 22:36 UTC (permalink / raw)
I am using the nice (www cgi) module. I tried to make a cookie today, and
I came across an item of sytax which I don't understand. I have no idea
how to use this function:
(cgi:make-cookie NAME VALUE #&key path domain expires secure)
What do I do with that #&key thing? I found a bit in the online mannual
in the Reader section about keywords, but it is an empty section. In my
scan of the optargs module I see some #: style thing. I am not sure about
that thing either. Would someone please provide a few examples?
Brian McQueen
NAS Division
NASA/Ames
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: cgi:make-cookie
2004-04-13 22:36 cgi:make-cookie Brian S McQueen
@ 2004-04-14 6:51 ` Thien-Thi Nguyen
0 siblings, 0 replies; 2+ messages in thread
From: Thien-Thi Nguyen @ 2004-04-14 6:51 UTC (permalink / raw)
Cc: guile-user
From: Brian S McQueen <bqueen@nas.nasa.gov>
Date: Tue, 13 Apr 2004 15:36:08 -0700 (PDT)
I have no idea how to use this function: [cgi:make-cookie]
perhaps you will find the latest docs more clear:
- Scheme Procedure: cgi:make-cookie name value #:key (path #f) (domain
#f) (expires #f) (secure #f)
Return a string suitable for inclusion into an HTTP response header
as a cookie with NAME and VALUE. Recognize and format
appropriately the optional keyword parameters `#:path',
`#:domain', `#:expires' (strings); and `#:secure' (boolean).
here is a simple example call to this proc:
(cgi:make-cookie 'war 'lose #:path "/ignorance/suffering")
=> "Set-Cookie: war=lose; path=/ignorance/suffering"
note that NAME and VALUE may also be strings. probably next version of
guile-www will also accept keywords for those args.
thi
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-14 6:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-13 22:36 cgi:make-cookie Brian S McQueen
2004-04-14 6:51 ` cgi:make-cookie Thien-Thi Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).