shaniqua-tclcurl-fa/tests/headNoHead.tcl

22 lines
350 B
Tcl
Raw Permalink Normal View History

2014-02-05 16:43:59 -08:00
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