Commit graph

55 commits

Author SHA1 Message Date
Simon Cruanes
7c684f1869
chore: autogen opam files from dune 2024-09-04 14:21:02 -04:00
Simon Cruanes
ddf181fe83
prepare for 0.2.4 2023-11-25 00:13:05 -05:00
Simon Cruanes
d259d85eb7 depend on thread 2023-11-25 00:10:54 -05:00
Simon Cruanes
d41eb2ceb4 fix: global initialization logic is now hidden behind a mutex 2023-11-25 00:10:54 -05:00
Stéphane Lavergne
46dc012356 Typo 2023-08-09 11:46:04 -04:00
Simon Cruanes
648ca8f77f
changelog 2023-06-20 22:38:26 -04:00
Simon Cruanes
7939bfa9e3
CI: use setup-ocaml v2 for gh-pages 2023-06-09 23:17:45 -04:00
Simon Cruanes
9e0b84ecfd
makefile 2023-06-09 23:13:18 -04:00
Simon Cruanes
be03f25cc0
ocamlformat 2023-06-09 21:06:20 -04:00
Simon Cruanes
73899acdf2
more doc 2023-06-09 21:04:03 -04:00
Simon Cruanes
c6141c8b3d
prepare for 0.2.3 2023-04-04 09:49:48 -04:00
Simon Cruanes
90ad38de20
CI: disable mac OS 😡 2023-03-16 11:07:29 -04:00
Simon Cruanes
52c35dc2df
Merge pull request #13 from c-cube/fix-12
Fix #12: set size properly for POST
2023-03-13 15:36:42 -04:00
Simon Cruanes
5bb480235a
remove spurious eprintf 2023-03-09 11:10:50 -05:00
Simon Cruanes
849194728a
chore: makefile 2023-02-28 11:07:55 -05:00
Simon Cruanes
9e7d9be5c3
fix: workaround servers which do not understand Expect header 2023-02-28 11:07:20 -05:00
Simon Cruanes
91cfbc94ad
fix: correctly set size of payload for POST
close #12
2023-02-28 11:06:39 -05:00
Simon Cruanes
63392ea36b
re-disable CI on windows 2023-02-28 10:49:33 -05:00
zapashcanon
ac24129ed6
run tests on all platforms 2023-02-28 09:45:07 -05:00
zapashcanon
bb69dade38
add a basic test 2023-02-28 09:45:07 -05:00
zapashcanon
2665eda083
enable macOS and windows CI 2023-02-28 09:45:04 -05:00
Simon Cruanes
f70f25d951 make sure to setup PUT correctly
follow https://curl.se/libcurl/c/CURLOPT_UPLOAD.html and also set
the method to PUT.
2023-02-07 11:07:39 -05:00
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
Simon Cruanes
916f72fb39
prepare for 0.2.2 2023-01-25 13:44:38 -05:00
Simon Cruanes
953db1f130 fix test 2023-01-25 13:43:35 -05:00
Simon Cruanes
cfcd23d16a fix: do not reset client if passed as argument
close #7
2023-01-25 13:43:35 -05:00
Simon Cruanes
db9b18fb44
prepare for 0.2.1 2021-10-07 13:20:37 -04:00
Simon Cruanes
c568f9e4e3
fix setting of headers
close #6
2021-10-07 13:09:23 -04:00
Simon Cruanes
1a21521b35
prepare for 0.2 2021-09-29 09:24:02 -04:00
Simon Cruanes
3d12ab0c1d
fix warning 2021-09-29 09:05:28 -04:00
Simon Cruanes
fe35e81fe0 minor changes to improve compatibility 2021-09-29 09:05:05 -04:00
zapashcanon
7b0c8230ae add a default user-agent 2021-09-29 09:05:05 -04:00
Simon Cruanes
78aff9928d chore: add missing bound from opam-repo (thx @kit-ty-kate) 2021-07-30 13:13:01 -04:00
Simon Cruanes
a1e2d7f600 enrich content type so it can be a stream.
- content is now either a string, or a callback function writing into
  a buffer
- also fix potential performance issue in body reading
- add `?content` to post
2021-07-30 12:43:36 -04:00
Simon Cruanes
6795c5b64a style 2021-07-22 11:04:34 -04:00
Simon Cruanes
93471ea0a7 update readme 2021-07-22 10:59:50 -04:00
Simon Cruanes
f9d8eb7220 move to github actions 2021-07-22 10:59:16 -04:00
Simon Cruanes
0733fc8b1e chore: try to appease mdx 2020-03-03 12:13:13 -06:00
Simon Cruanes
99b21c29cc chore: update some build files 2020-03-03 09:37:41 -06:00
Simon Cruanes
cc8adf48e1 doc: point to example 2019-09-17 08:50:43 -05:00
Simon Cruanes
89165cc80d add license file (MIT) 2019-09-16 12:59:46 -05:00
Simon Cruanes
fa37890804 feat: add a way to send content 2019-09-14 12:50:33 -05:00
Simon Cruanes
8ee9668441 fix build 2019-09-14 12:30:53 -05:00
Simon Cruanes
863a6263bb feat: add an example, a simple web crawler that looks for deadlinks 2019-09-14 12:25:34 -05:00
Simon Cruanes
54e7d1740f feat: add more methods, add range parameter 2019-09-14 11:28:28 -05:00
Simon Cruanes
637674f6d0 feat: add some printers 2019-09-14 10:54:53 -05:00
Simon Cruanes
879272f313 chore: fix travis 2019-09-14 10:43:27 -05:00
Simon Cruanes
5e2968a87e doc: update readme 2019-09-14 10:42:03 -05:00
Simon Cruanes
1dcde0d0a8 chore: add travis support 2019-09-14 10:29:53 -05:00
Simon Cruanes
d6c687d16c doc: use mdx to update the readme (and test) 2019-09-14 10:27:06 -05:00