shaniqua-tclcurl-fa/tests/headerVar.tcl
2014-02-05 16:43:59 -08:00

14 lines
209 B
Tcl
Executable File

package require TclCurl
curl::transfer -url 127.0.0.1 -header 1 -nobody 1 -headervar headers
puts "The received headers"
foreach {key content} [array get headers] {
puts "headers($key): $content"
}