Have a look at: https://github.com/mirage/ocaml-cohttp
You can of course also use cohttp directly but it's a little raw.