X-Git-Url: http://git.sven.stormbind.net/?a=blobdiff_plain;f=tests%2FfileNoFile.tcl;fp=tests%2FfileNoFile.tcl;h=27dae9f019c9eab0aff969cfec924cc092d00128;hb=b0e6fb6e4379fb87fa2854b84a56c5ad49c644da;hp=0000000000000000000000000000000000000000;hpb=c9a5bcd9d76f699909b24e71a2a216d36062ab0b;p=sven%2Ftclcurl.git diff --git a/tests/fileNoFile.tcl b/tests/fileNoFile.tcl new file mode 100755 index 0000000..27dae9f --- /dev/null +++ b/tests/fileNoFile.tcl @@ -0,0 +1,20 @@ +package require TclCurl + +set curlHandle [curl::init] + +puts "First we save in 'index.html'" + +$curlHandle configure -noprogress 1 -url "127.0.0.1" -file "index.html" +$curlHandle perform + +puts "And now in stdout" + +$curlHandle configure -file "" +$curlHandle perform + +$curlHandle cleanup + + + + +