]> git.sven.stormbind.net Git - sven/tclcurl.git/blobdiff - tests/headNoHead.tcl
Imported Upstream version 7.19.6
[sven/tclcurl.git] / tests / headNoHead.tcl
diff --git a/tests/headNoHead.tcl b/tests/headNoHead.tcl
new file mode 100755 (executable)
index 0000000..7947152
--- /dev/null
@@ -0,0 +1,21 @@
+package require TclCurl
+
+set curlHandle [curl::init]
+
+puts "First we save the headers in 'header.txt'"
+
+$curlHandle configure -noprogress 1 -nobody 1 -url "127.0.0.1" \
+        -writeheader header.txt
+$curlHandle perform
+
+puts "And now we dump them to the console"
+
+$curlHandle configure -writeheader ""
+$curlHandle perform
+
+$curlHandle cleanup
+
+
+
+
+