Hi Andreas,
On Wed, May 15, 2019 at 08:27:19AM +0200, [email protected] wrote:
> In web.l framework, you you define a request handler using (dh).
I do not know the web.l framework, but like to add that using either 'client'
(from "@lib/http.l") or @bin/ssl is a bit simpler.
'client' can handle POSTs, but no HTTPS. @bin/ssl handles HTTPS, but no POSTs.
In case you need both, I recommend a pipe to curl again.
'client' and @bin/ssl are used roughly the same way. An example for parsing
bitcoin rates would be:
(load "@lib/json.l")
(scl 2)
(in '("@bin/ssl" "blockchain.info" 443 "de/ticker")
(while (line)) # Skip header
(readJson) )
☺/ A!ex
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe