unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Examples of using jsonrpc.el to talk to http servers?
@ 2024-12-26 23:41 Eduardo Ochs
  0 siblings, 0 replies; only message in thread
From: Eduardo Ochs @ 2024-12-26 23:41 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-26 23:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-26 23:41 Examples of using jsonrpc.el to talk to http servers? Eduardo Ochs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).