[Top][All Lists]

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

Re: [Chicken-users] POST and GET request parameters from spiffy

From: Peter Bex
Subject: Re: [Chicken-users] POST and GET request parameters from spiffy
Date: Mon, 16 Nov 2009 11:13:33 +0100
User-agent: Mutt/

On Sun, Nov 15, 2009 at 12:45:51PM +0100, Peter Bex wrote:
> Anyway, the easy way to read the POST is this:
> (form-urldecode (read-request-data (current-request)))

I forgot, read-request-data is not in intarweb (yet?). Here's its

(define (read-request-data req)
  (let ((len (header-value 'content-length (request-headers req))))
    ;; If the header is not available, this will read until EOF
    (read-string len (request-port req))))

I might add this to intarweb in the future, possibly with a length

"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

reply via email to

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