#include "_doctype.html" libcurl - the Tcl Binding #include "css.t" #define LIBCURL_TCL #define CURL_URL libcurl/tcl #include "_menu.html" #include "setup.t" WHERE2(libcurl, "/libcurl/", Tcl Binding) TITLE(accessing libcurl from Tcl)

We can take advantage of libcurl straight from within our Tcl programs. All you need to do is to install the TclCurl package and then you'll be able to use it.

"once you get past the badly written configure/make for the package [TclCurl], it's so darn sweet it'll give you toothache." (Phil Ehrens)

Visit the TclCurl homepage.

How to Install
Install curl and libcurl first, then follow the usual sequence:

  ./configure
  make
  make install
To test the installation do:
    $tclsh
    % package require TclCurl

If Tcl returns TclCurl's version number, all went well.

Examples

There are a couple of ways to perform a transfer with TclCurl, for simple cases you can do:

    curl::transfer -file index.html -url http://curl.haxx.se

Source Code

https://bitbucket.org/smh377/tclcurl

Credits
The Tcl binding was written and maintained by Andres Garcia. It is now maintained by Steve Havelka.

What is Tcl?
You can find more info on the semiofficial Tcl web page. #include "_footer.html"