Discussion:
Bindings for libcurl
Johann 'Myrkraverk' Oskarsson
2015-05-09 02:25:07 UTC
Permalink
Hi all,

I've made a demo for libcurl bindings, with an emodule.

It's not much of anything yet, but does suffice to make a "hello,
world" style retrieval.

Blog: http://www.myrkraverk.com/blog/2015/05/xemacs-binding-for-libcurl/

Code: https://github.com/myrkraverk/xemacs-libcurl


The real value would be the multi interface, but I won't be doing that
any time soon.


Enjoy.
Stephen J. Turnbull
2015-05-09 08:55:24 UTC
Permalink
Post by Johann 'Myrkraverk' Oskarsson
Hi all,
I've made a demo for libcurl bindings, with an emodule.
I made one (plus one for neon) a long time ago, but never integrated
it. Lack of documentation and lack of a decent Emacsish API
(especially for dealing with credentials) were the reasons.
Post by Johann 'Myrkraverk' Oskarsson
It's not much of anything yet, but does suffice to make a "hello,
world" style retrieval.
Mine was basically the full deal, also for
Post by Johann 'Myrkraverk' Oskarsson
Code: https://github.com/myrkraverk/xemacs-libcurl
I guess I could push to github easily enough. Maybe later this
weekend.
Johann 'Myrkraverk' Oskarsson
2015-05-09 22:40:47 UTC
Permalink
Hi all,
Post by Stephen J. Turnbull
Post by Johann 'Myrkraverk' Oskarsson
I've made a demo for libcurl bindings, with an emodule.
I made one (plus one for neon) a long time ago, but never integrated
it. Lack of documentation and lack of a decent Emacsish API
(especially for dealing with credentials) were the reasons.
I have been thinking about that. Some things in libcurl are only
available as a FILE *, namely error reporting.

I was wondering if it would be possible to set up pipes with a FILE *
on one end, and a buffer on the other.

But I don't know if XEmacs has the internal features required. Maybe
processes help.

[...]
Post by Stephen J. Turnbull
I guess I could push to github easily enough. Maybe later this
weekend.
I'd very much like to take a look at what you did.

I chose to use the libcurl license itself for my code, for two
reasons. 1) I copy the libcurl documentation directly into the
docstrings, and edit; 2) on the off chance it can be helpful for other
libcurl bindings.

Of course, if the goal is to distribute the module with XEmacs, other
considerations apply.


Johann

Loading...