Created
April 29, 2010 11:51
-
-
Save serian/383486 to your computer and use it in GitHub Desktop.
gauche http レスポンスヘッダ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Gacuhe | |
;httpのレスポンスヘッダから任意のヘッダを文字列としてぬきだす | |
;ここでは一つだけあるset-cookieヘッダ。 | |
(use rfc.http) | |
(use text.tree) | |
(receive (status header body) | |
(http-get svr req-uri) | |
(tree->string (car (string-split (tree->string (cdr (assoc "set-cookie" header))) ";")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment