X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=tests%2Freset.tcl;fp=tests%2Freset.tcl;h=101c201b5fde1f6a31086ead850bac8ed882c722;hb=b0e6fb6e4379fb87fa2854b84a56c5ad49c644da;hp=0000000000000000000000000000000000000000;hpb=c9a5bcd9d76f699909b24e71a2a216d36062ab0b;p=sven%2Ftclcurl.git diff --git a/tests/reset.tcl b/tests/reset.tcl new file mode 100755 index 0000000..101c201 --- /dev/null +++ b/tests/reset.tcl @@ -0,0 +1,21 @@ +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 reset +$curlHandle configure -url "http://127.0.0.1/" +$curlHandle perform + +$curlHandle cleanup + + + + +