Re: Static file server with Ersatz

2015-03-16 Thread Joe Bogner
Christophe, I wrote up an article a few years ago about creating a web app with ersatz and picoLisp: http://picolisp.com/wiki/?ersatzwebapp One of the subtle points of the article is that you need to modify the ersatz sources to remove the Static initialization of variables, otherwise it won't

An HTTP(S) client library for PicoLisp

2015-03-16 Thread Alexander Williams
Hi everyone, Presenting another thing, this time it's an HTTPS library using a native C lib for the hard stuff. It includes functions for http/https GET/HEAD/POST/PUT/DELETE/*ANYTHING*, and can perform authentication. It returns the response body in a cons pair, or save to file, and returns

Re: An HTTP(S) client library for PicoLisp

2015-03-16 Thread Alexander Burger
On Mon, Mar 16, 2015 at 01:38:10PM -0400, Rick Hanson wrote: Great stuff. Clean code and clear doc. But I've already told AW this on IRC. For others: I highly recommend! I chime in! :) -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Static file server with Ersatz

2015-03-16 Thread Christophe Gragnic
Hi Alex, hi Joe. On Mon, Mar 16, 2015 at 9:41 AM, Alexander Burger a...@software-lab.de wrote: Hi Christophe, but with Ersatz. Has it been done ? If not, would it involve: 1) the use of the -server function in http.l I haven't thought about this in depth. 'server' might be ported to Ersatz

Re: An HTTP(S) client library for PicoLisp

2015-03-16 Thread Rick Hanson
Great stuff. Clean code and clear doc. But I've already told AW this on IRC. For others: I highly recommend! On Mon, Mar 16, 2015 at 11:46 AM, Alexander Williams a...@unscramble.co.jp wrote: Hi everyone, Presenting another thing, this time it's an HTTPS library using a native C lib for

Static file server with Ersatz

2015-03-16 Thread Christophe Gragnic
Hi list, I'm investigating a way to be able to fire up a static file server like in Python: python -m http.server 8000 but with Ersatz. Has it been done ? If not, would it involve: 1) the use of the -server function in http.l 2) grab the path of the requested file 3) read the file and send it to

Re: Static file server with Ersatz

2015-03-16 Thread Alexander Burger
Hi Christophe, but with Ersatz. Has it been done ? If not, would it involve: 1) the use of the -server function in http.l I haven't thought about this in depth. 'server' might be ported to Ersatz perhaps, by omitting the (fork) stuff. 2) grab the path of the requested file 3) read the file