[racket] WebServer not finding param in POST but does so in GET???

From: J G Cho (gcho at fundingmatters.com)
Date: Mon Dec 3 15:14:10 EST 2012

5.3 Is it too old?

On Mon, Dec 3, 2012 at 2:34 PM, Jay McCarthy <jay.mccarthy at gmail.com> wrote:
> What version of Racket are you using?
>
> In particular, you should read the documentation for request-bindings.
> In the past, it only read GET queries, but then it started to read
> POST queries too.
>
> If you are on 5.3.1, then it is an error with that change and you
> should let me know (perhaps with a PR) so I can fix it.
>
> Jay
>
> On Mon, Dec 3, 2012 at 9:50 AM, J G Cho <gcho at fundingmatters.com> wrote:
>> (define bs (request-bindings req))
>> ...
>>     [(exists-binding? 'stat bs)
>>      (handle-post-stat (extract-binding/single 'stat bs))]
>>
>> The above cond clause evaluates when Browser invokes
>>
>>     $.ajax({
>>       type: "GET",
>>       url: "/abc/xyz",
>>       data: {stat: JSON.stringify( data )},
>>
>> But not when POST is used. Why would this be the case?
>>
>> Curiously,
>>
>> jGc
>> ____________________
>>   Racket Users list:
>>   http://lists.racket-lang.org/users
>
>
>
> --
> Jay McCarthy <jay at cs.byu.edu>
> Assistant Professor / Brigham Young University
> http://faculty.cs.byu.edu/~jay
>
> "The glory of God is Intelligence" - D&C 93

Posted on the users mailing list.