1 package require TclCurl
3 # As an example this is very contrived, but it works.
7 set chunk [read $::inFile $size]
12 set inFile [open "cosa.tar" r]
13 fconfigure $inFile -translation binary
15 curl::transfer -url "ftp://127.0.0.1/cosa.tar" -verbose 1 \
16 -username user -password pass -readproc readFile -upload 1