2019-02-02 01:39:03 +00:00
|
|
|
[](https://travis-ci.org/flightaware/tclcurl-fa)
|
|
|
|
|
|
|
|
# TclCurl - get a URL with FTP, TELNET, LDAP, DICT, FILE, HTTP or HTTPS syntax.
|
|
|
|
|
|
|
|
## Introduction
|
2014-02-05 16:43:59 -08:00
|
|
|
|
|
|
|
TclCurl gives the Tcl programmer access to the facilities of libcurl, for more information
|
|
|
|
about what libcurl is capable of check http://curl.haxx.se.
|
|
|
|
|
|
|
|
To make type:
|
|
|
|
|
|
|
|
./configure ?--enable-threads?
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
|
2019-02-02 01:41:18 +00:00
|
|
|
The configure script will deduce `$PREFIX` from the tcl installation.
|
|
|
|
The generated `Makefile` uses the file `$PREFIX/lib/tclConfig.sh` that was left by
|
2014-02-05 16:43:59 -08:00
|
|
|
the make of tcl for most of its configuration parameters.
|
|
|
|
|
2019-02-02 01:41:18 +00:00
|
|
|
There is another file, ReadMeW32.txt, to explain how to compile in Windows.
|
2014-02-05 16:43:59 -08:00
|
|
|
|
2019-02-02 01:39:03 +00:00
|
|
|
## Troubleshooting
|
2014-02-05 16:43:59 -08:00
|
|
|
|
|
|
|
If you are running Red Hat or Fedora and you are compiling from source,
|
2019-02-02 01:41:18 +00:00
|
|
|
make sure the directory `/usr/local/lib` is listed in `/etc/ld.so.conf`,
|
2014-02-05 16:43:59 -08:00
|
|
|
if it isn't add it before installing cURL.
|
|
|
|
|
|
|
|
If the configure script doesn't detect Tcl even though it is there, it
|
2019-02-02 01:41:18 +00:00
|
|
|
is probably because there is no `tclConfig.sh` file, maybe you need
|
|
|
|
to install a `tcl-devel` package or maybe it would be a good idea
|
2014-02-05 16:43:59 -08:00
|
|
|
to download the latest version, and install that.
|
|
|
|
|
2019-02-02 01:39:03 +00:00
|
|
|
## Usage
|
2014-02-05 16:43:59 -08:00
|
|
|
|
|
|
|
package require TclCurl
|
|
|
|
|
|
|
|
set curlHandle [curl::init]
|
|
|
|
|
|
|
|
curlHandle perform
|
|
|
|
|
|
|
|
curlHandle getinfo curlinfo_option
|
|
|
|
|
|
|
|
curlHandle duphandle
|
|
|
|
|
|
|
|
curlhandle cleanup
|
|
|
|
|
|
|
|
curl::transfer
|
|
|
|
|
|
|
|
curl::version
|
|
|
|
|
|
|
|
curl::escape url
|
|
|
|
|
|
|
|
curl::unescape url
|
|
|
|
|
|
|
|
curl::curlConfig option
|
|
|
|
|
|
|
|
Check the man page for details.
|
|
|
|
|
2019-02-02 01:39:03 +00:00
|
|
|
## Authors
|
2014-02-05 16:43:59 -08:00
|
|
|
|
|
|
|
Written by: Andres Garcia (fandom@telefonica.net)
|
|
|
|
|
2019-02-02 01:39:03 +00:00
|
|
|
Cloned from a repo once at: https://bitbucket.org/smh377/tclcurl/
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
2014-02-05 16:43:59 -08:00
|
|
|
Use at your own risk. No support.
|
|
|
|
BSD like license, check 'license.terms' for details.
|