Hello Wo,
On Tue, Jan 26, 2010 at 10:13 PM, woomla <[email protected]> wrote:
> > var jsonRequest = new Request.JSON({url: serviceURL, onSuccess:
> > function(result){
> > alert("result:"+result);}}).post({'method': 'store', 'params': 'bla
> bla'});
>
> Be adviced, although you set the parameter 'method' to the value
> 'store' in the call to post, you'll execute the method post. The
> parameter 'method' with value 'store' is simply send to the server as
> post data. See the example
>
Indeed. I've done myself the web-server (implemented in Lua) which
understands the 'commands' sent via json messages. It's not JsonRpc
compliant, but it does the job. I understand that the HTTP header will
indeed use POST.
I'll keep experimenting via the *amazing* MooShell, it's really one of the
best tools for web-developers I've seen in long-long time..
>
> Wo.
>