X-Git-Url: http://git.sven.stormbind.net/?a=blobdiff_plain;f=tests%2FheadNoHead.tcl;fp=tests%2FheadNoHead.tcl;h=794715270064458d367ec6f4bb37f31df891f504;hb=b0e6fb6e4379fb87fa2854b84a56c5ad49c644da;hp=0000000000000000000000000000000000000000;hpb=c9a5bcd9d76f699909b24e71a2a216d36062ab0b;p=sven%2Ftclcurl.git diff --git a/tests/headNoHead.tcl b/tests/headNoHead.tcl new file mode 100755 index 0000000..7947152 --- /dev/null +++ b/tests/headNoHead.tcl @@ -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 + + + + +