help-gnu-emacs
[Top][All Lists]
Advanced

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

Examples of using jsonrpc.el to talk to http servers?


From: Eduardo Ochs
Subject: Examples of using jsonrpc.el to talk to http servers?
Date: Thu, 26 Dec 2024 20:41:31 -0300

Hi list,

I am trying to learn how to use JSONRPC, and a friend - subhuman - was
helping me on IRC... we started by adapting the two snippets of code
here,

  https://json-rpc.readthedocs.io/en/latest/quickstart.html

to make a Python client talk via JSONRPC to a Python server, and
everything worked...

...then we tried to write some elisp code to talk to that Python
server, and my friend had to write a lot of code to make that work,
because:

  "jsonrpc.el ... is purely TCP, it doesn't send http protocol
   headers, while the server we're both running expects GET blablablah
   and THEN your rpc post data"

We got something that works, but it was a hack, and we're not very
proud of it.



___QUESTION___:

Where can we find examples of using the functions in jsonrpc.el to
talk to HTTP clients, that expect more headers?

Thanks in advance!
  Eduardo Ochs
  http://anggtwu.net/emacsconf2024.html



reply via email to

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