X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=tests%2Fntlm.tcl;fp=tests%2Fntlm.tcl;h=22eee78fe9387195765539e6d60264c8da867518;hb=b0e6fb6e4379fb87fa2854b84a56c5ad49c644da;hp=0000000000000000000000000000000000000000;hpb=c9a5bcd9d76f699909b24e71a2a216d36062ab0b;p=sven%2Ftclcurl.git diff --git a/tests/ntlm.tcl b/tests/ntlm.tcl new file mode 100755 index 0000000..22eee78 --- /dev/null +++ b/tests/ntlm.tcl @@ -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