Hi all,
I try to figure out, how the RPC (using ‘curl’) really works. I found some documentation under ‘https://mongoose-os.com/docs/mongoose-os/userguide/rpc.md’ and implemented the example, i.e. the RPC-Function ‘Sum’.
Then I tried the given examples:
REST:
- curl http://192.168.0.206/rpc/Sum -d ‘{“a”:1, “b”: 2}’ -> (original from example) does not work with me
- curl http://192.168.0.206/rpc/Sum -d {“a”:1, “b”: 2} -> does not work either
- curl http://192.168.0.206/rpc/Sum -d {“a”:1,“b”:2} -> (without blanks and “’”) does work!!
GET: - curl ‘http://192.168.0.206/rpc/Sum?a=1&b=2’ -> (original from example) does not work
- curl http://192.168.0.206/rpc/Sum?a=1&b=2 -> does not work either
Has anybody an idea, why the original calls from the example do not work but just one slightly adapted one does?
Thanks for any inputs and
Kind regards
Rolf