ezcurl/src
Edwin Török 5ba64ee30a ezcurl: allow POST with non-form data
Currently ezcurl always sets CURLOPT_HTTPPOST, but that means it is not able
to send a custom body that is not a form (e.g. JSON is quite a common use-case
these days).

Add a special case: if the POST params is empty, *and* a 'content' is set, then
just set CURLOPT_POST, but not CURLOPT_HTTPPOST.

Example usage:
```
let contents = Ezjsonm.to_string json in
let config = EZ.Config.(verbose true default) in
match EZ.post ~config ~url ~params:[] ~content:(`String contents) () with
```

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
2023-02-02 12:05:46 -05:00
..
core ezcurl: allow POST with non-form data 2023-02-02 12:05:46 -05:00
lwt feat: add lwt wrapper 2019-09-14 10:00:38 -05:00
sync doc: use mdx to update the readme (and test) 2019-09-14 10:27:06 -05:00