Here is one of the Getting Started examples at
http://bandilab.org/getting-started.html
, translated to Tcl:
--
package require http
set fileHandle [open duplicate.csv rb]
set fileContent [read $fileHandle]
close $fileHandle
set token [::http::geturl
http://localhost:12345/Echo -query
$fileContent]
set result [::http::data $token]
::http::cleanup $token
puts $result
--
Tcl's csv package can be used to parse resulting csv output.
-
Roman