File: hello-fcgi.l

package info (click to toggle)
euslisp 9.27%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 55,344 kB
  • sloc: ansic: 41,162; lisp: 3,339; makefile: 256; sh: 208; asm: 138; python: 53
file content (26 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
;;
;;

(require :httpfcgi "/usr/local/eus/lib/llib/httpfcgi")
(require :web-counter "web-counter")

(defvar *count* 0)
(setq *action* "/fcgi/hello.fcgi")

(setq db (instance pq:pgsql :init :dbname "t.matsui"  :user "t.matsui"))

(fcgi-loop
   (incf *count*)
   ;; (format *error-output* "fcgi-eus connection accepted~%")
   (http-header)
   (html-header :charset :euc)

   (gen "<h1>Hello World</h1>~%")
   (gen "<h2>Hello World</h2>~%")
   (gen "</body> </html>~%")
   )

;;