]> git.sven.stormbind.net Git - sven/tclcurl.git/blobdiff - tests/reset.tcl
Imported Upstream version 7.19.6
[sven/tclcurl.git] / tests / reset.tcl
diff --git a/tests/reset.tcl b/tests/reset.tcl
new file mode 100755 (executable)
index 0000000..101c201
--- /dev/null
@@ -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
+
+
+
+
+