X-Git-Url: http://git.sven.stormbind.net/?a=blobdiff_plain;f=tests%2Fftp.tcl;fp=tests%2Fftp.tcl;h=e3f0533220b6b2a33c17b3e8cade86f6d8331efe;hb=b0e6fb6e4379fb87fa2854b84a56c5ad49c644da;hp=0000000000000000000000000000000000000000;hpb=c9a5bcd9d76f699909b24e71a2a216d36062ab0b;p=sven%2Ftclcurl.git diff --git a/tests/ftp.tcl b/tests/ftp.tcl new file mode 100755 index 0000000..e3f0533 --- /dev/null +++ b/tests/ftp.tcl @@ -0,0 +1,22 @@ +package require TclCurl + +puts "nobody==1 --- header==1" +curl::transfer -url "ftp://127.0.0.1/pub/indust2.gif" -nobody 1 -header 1 + +puts "nobody==0 --- header ignored" +curl::transfer -url "ftp://127.0.0.1/pub/indust2.gif" -nobody 0 \ + -file cosa.gif + +puts "nobody==1 --- HEADERS==0" +curl::transfer -url "ftp://127.0.0.1/pub/indust2.gif" -nobody 1 \ + -header 0 -postquote [list "mkdir nada"] + + + + + + + + + +