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

16
tests/ntlm.tcl Executable file
View File

@ -0,0 +1,16 @@
# Contributed by Jos Decoster
set curlHandle [curl::init]
$curlHandle configure \
-verbose 1 -failonerror 1 -errorbuffer ::errorBuffer \
-url $::url -file $::file \
-proxy $::proxy_host -proxyport $::proxy_port \
-proxyauth ntlm \
-proxyuserpwd $::proxy_user:$::proxy_password
if { [catch {$curlHandle perform} r] } {
return -code error "$r $::errorBuffer"
}
$curlHandle cleanup