Re: REST client demo
- Posted by jmduro May 23, 2023
- 563 views
I built my own releases from scratch using the C source code cause I wanted to master every detail if something went wrong. I added some functions in curl.e which might be useful for beginners:
- public function curl_get(atom curl, sequence url, sequence headers={})
- public function curl_post(atom curl, sequence url, sequence headers, object body)
- public function curl_put(atom curl, sequence url, sequence headers, object body)
- public function curl_delete(atom curl, sequence url, sequence headers={})
- public function curl_patch(atom curl, sequence url, sequence headers, object body)
- public function curl_head(atom curl, sequence url, sequence headers={})
- public function curl_options(atom curl, sequence url, sequence headers={})
- public function curl_trace(atom curl, sequence url, sequence headers={})
Every request is logged. I use it to drive my pellet stove.
Jean-Marc