1 package require TclCurl
3 set curlHandle [curl::init]
4 $curlHandle configure -url "127.0.0.1/cosa.html"
6 $curlHandle configure -failonerror 0 ; # This is the default
7 puts "With failonerror==0:"
8 catch {$curlHandle perform}
10 puts "With failonerror==1:"
11 $curlHandle configure -failonerror 1
12 catch {$curlHandle perform}