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