initial checkin of TclCurl

This commit is contained in:
Steve Havelka
2014-02-05 16:43:59 -08:00
commit 639b49517b
95 changed files with 30934 additions and 0 deletions

23
tests/errorBuffer.tcl Executable file
View File

@ -0,0 +1,23 @@
package require TclCurl
set curlHandle [curl::init]
$curlHandle configure -url "Shire.Asturias.com" -errorbuffer errorMsg
if {[catch {$curlHandle perform}]} {
puts "The error message: $errorMsg"
}
$curlHandle configure -url "Shire.Asturias.com" -errorbuffer error(msg)
if {[catch {$curlHandle perform}]} {
puts "The error message: $error(msg)"
}
$curlHandle cleanup
unset error
catch {curl::transfer -url "Shire.Asturias.com" -errorbuffer error(msg)}
puts "Error: $error(msg)"