initial checkin of TclCurl
This commit is contained in:
16
tests/ntlm.tcl
Executable file
16
tests/ntlm.tcl
Executable 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
|
Reference in New Issue
Block a user