1 # Contributed by Jos Decoster
3 set curlHandle [curl::init]
5 $curlHandle configure \
6 -verbose 1 -failonerror 1 -errorbuffer ::errorBuffer \
7 -url $::url -file $::file \
8 -proxy $::proxy_host -proxyport $::proxy_port \
10 -proxyuserpwd $::proxy_user:$::proxy_password
12 if { [catch {$curlHandle perform} r] } {
13 return -code error "$r $::errorBuffer"