1 package require TclCurl
3 # These tests has some urls that don't exists outside my system,
4 # so IT WON'T WORK FOR YOU unless you change them.
6 set curlHandle [curl::init]
7 $curlHandle configure -url "127.0.0.1" -bodyvar body -noprogress 1
10 $curlHandle configure -url "127.0.0.1/~andres/" -bodyvar newBody
21 # You can also use it for binary transfers
24 -url {127.0.0.1/~andres/HomePage/getleft/images/getleft.png} \
25 -bodyvar image -noprogress 1 -verbose 1
27 if [catch {open "getleft.png" w} out] {
28 puts "Could not open $out."
32 fconfigure $out -translation binary