| |
|
|
|
cURL libcurl libcurl Pascal Binding
CurlPas -- accessing libcurl from PascalCurlPas 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
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
The core pascal bindings are quite similar to their C-language equivalents,
Credits What is Pascal? |
Page updated November 16, 2009.
web site info