[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Re: is define-http-resource converting POST into GET?
From: |
Michele Simionato |
Subject: |
[Chicken-users] Re: is define-http-resource converting POST into GET? |
Date: |
Fri, 27 May 2005 05:00:40 -0400 |
On 5/27/05, Michele Simionato <address@hidden> wrote:
> I was doing some experiment like this one:
>
> (define-http-resource (/login)
> `(form (@ (method "post") (action "process-login"))
> "Enter your name" (input (@ (type "text") (name "username")))))
>
> (define-http-resource (/process-login username)
> (let ()
> (spiffy-debug (get-var "username"))
> `(h1 "Welcome on board, " ,username)))
>
> and I am noticing that my browser shows a GET-like query string:
>
> http://localhost:4242/process-login?username=felix
>
> The output of spiffy-debug confirm this. So, it looks like
> define-http-resource
> is converting POST into GET somewhere.This should be documented.
>
Uhm ... I cannot reproduce that behavior with another browser.
Maybe it was a browser issue? Further investigation going on ...