#include "_doctype.html" CurlPas - libcurl for Pascal #include "css.t" #define LIBCURL_PASCAL #define CURL_URL libcurl/pascal #include "_menu.html" #include "setup.t" WHERE2(libcurl, "/libcurl/", libcurl Pascal Binding) TITLE(CurlPas -- accessing libcurl from Pascal)

CurlPas is a FreePascal - Lazarus - Delphi - Kylix - compatible binding and object-oriented wrapper for libcurl.

Libcurl is a web-client library that can provide cross-platform Pascal applications with an easy way to implement such things as:


CurlPas also includes the tCurl and tCurlMulti components, to provide an easy to use "wrapper" around libcurl.
( This provides simple get/set properties for libcurl's options and information functions, event-based hooks to
libcurl's I/O, status, and progress callbacks, and wraps the c-style file I/O behind simple filename properties. )

Documentation

All details on CurlPas is found on the CurlPas web page: curlpas.sourceforge.net.

Examples
A simple http download program...


  program simple;

  {$APPTYPE CONSOLE}

  uses curlobj;

  var 
    Curl: TCurl;

  begin
    Curl := TCurl.Create(nil);
    Curl.URL := 'http://curl.haxx.se/';
    Curl.OutputFile := 'curl.html';

    if not Curl.Perform then
      WriteLn(Curl.ErrorString);

    Curl.Free;
  end.

( Several more complex examples are included with the CurlPas sources. )

Binding documentation
Documentation for the component wrapper can be found in the source package,
and on the CurlPas website.

The core pascal bindings are quite similar to their C-language equivalents,
read the libcurl documentation for information, in particular:

Credits
Written by Jeffrey Pohlmeyer.

What is Pascal?
You'll find more info Free Pascal here: http://www.freepascal.org. #include "_footer.html"