Maida umarnin CURL zuwa lambar OCaml akan layi

Curl command

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

CURL zuwa OCaml akan layi

Wannan kayan aikin yana taimaka muku ƙirƙirar lambar OCaml bisa umarnin CURL. Kwafi da liƙa umarnin CURL kuma samar da OCaml.

Me zaku iya yi da CURL zuwa OCaml mai musanya akan layi?

  • CURL zuwa OCaml kayan aiki ne na musamman don canza umarnin CURL zuwa buƙatar OCaml na OCaml. Shigar da aka bayar ta umarnin CURL na mai amfani don samar da lambar OCaml.
  • Wannan kayan aikin yana adana lokacin ku kuma yana taimakawa ƙirƙirar lambar OCaml cikin sauƙi.
  • CURL zuwa OCaml yana aiki da kyau akan Windows, MAC, Linux, Chrome, Firefox, Edge da Safari.

menene CURL?

CURL kayan aikin layin umarni ne mai buɗewa wanda ke zazzage fayiloli daga gidan yanar gizo. Yana goyan bayan ka'idoji iri-iri, gami da OCaml, OCamlS, FTP, SFTP, TFTP, Gopher da sauransu.

Ta yaya ake canza CURL zuwa lambar OCaml? 

Mataki 1: Manna kuma canza buƙatun CURL ɗin ku zuwa lambar OCaml

Mataki 2: Kwafi OCaml code

Maida CURL zuwa misalin OCaml

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 *)