cURL libcurl libcurl O´Caml Binding
accessing libcurl from O´Caml
O'Caml bindings to libcurl. The library provides an interface to
the curl_easy functions (the multi functions are not supported at this
point in time).
How to Install
The following steps will create a subdirectory, curl, in the standard O'Caml
library directory and install the necessary files there.
> tar xfz ocurl-0.1.tar.gz > cd curl > ./configure > make > make installWhen compiling a code that makes use of the ocurl library "-I +curl" should be given (see the sample compilation below).
let _ = let connection = Curl.init () in Curl.setopt connection (Curl.CURLOPT_URL Sys.argv.(1)); Curl.perform connectionCompilation:
> ocamlc -I +curl curl.cma simple.ml -o simpleExecution:
What is O'Caml?
Page updated September 08, 2008.
web site info