guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGI scripting with Guile


From: Sebastian Tennant
Subject: Re: CGI scripting with Guile
Date: Sun, 16 Mar 2008 14:51:19 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Quoth Thien-Thi Nguyen <address@hidden>:
> What does the client see for the second case?

 #!/usr/bin/guile -s
 !#
 (use-modules (www cgi)) ;LOAD
 (cgi:init)              ;INIT
 (simple-format
         #t
         "Content-Type: text/plain\r\n\r\n~A"
         "hello world")

---/---

 guile> (www:get "http://www.../hw.scm";)
 ""
 guile> (www:http-head-get "http://www.../hw.scm";)
 #("HTTP/1.0" "200" "OK" ((server . "lighttpd/1.4.18") (date . "Sun, 16
  Mar 2008 12:43:32 GMT") (content-length . "0") (connection . "close"))
  "")

---/---

It 'works' without LOAD and INIT.

Seb





reply via email to

[Prev in Thread] Current Thread [Next in Thread]