From: Eduardo Ochs <eduardoochs@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Examples of using jsonrpc.el to talk to http servers?
Date: Thu, 26 Dec 2024 20:41:31 -0300 [thread overview]
Message-ID: <CADs++6hEz9aRZKCxcyvw0CKsWuKg=9yW8SeRDHoTW=mz8q498Q@mail.gmail.com> (raw)
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 other threads:[~2024-12-26 23:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADs++6hEz9aRZKCxcyvw0CKsWuKg=9yW8SeRDHoTW=mz8q498Q@mail.gmail.com' \
--to=eduardoochs@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).