Convert CURL commands to OCaml code online

Curl command

Examples: GET - POST - JSON - Basic Auth - Files - Form

CURL to OCaml online

This tool helps you to generate OCaml code based on CURL command. Copy and paste CURL command and generate OCaml.

What can you do with CURL to OCaml converter online?

  • CURL to OCaml is very unique tool to convert CURL command to OCaml request of OCaml. The input provide by the user's CURL command to generate OCaml code.
  • This tool saves your time and helps to generate OCaml code with ease.
  • CURL to OCaml works well on Windows, MAC, Linux, Chrome, Firefox, Edge and Safari.

what is CURL?

CURL is an open-source command line tool that downloads files from the web. It supports a variety of protocols, including OCaml, OCamlS, FTP, SFTP, TFTP, Gopher and others.

How do convert CURL to OCaml code? 

Step1: Paste and convert your CURL requests to OCaml code

Step2: Copy OCaml code

Convert CURL to OCaml example

CURL
curl example.com
OCaml
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "http://example.com/" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)