1 package require TclCurl
3 set curlHandle [curl::init]
5 puts "First it goes into error.txt"
6 $curlHandle configure -url 127.0.0.1/~andres/cosa&co.tar -stderr error.txt \
7 -noprogress 0 -file cosa.tar
9 catch {$curlHandle perform}
12 puts "And then to stderr:"
13 $curlHandle configure -stderr ""
15 catch {$curlHandle perform}