1 package require TclCurl
4 curl::transfer -url 127.0.0.1/cgi-bin/post1.tcl -verbose 1 -post 1 \
5 -httppost [list name "firstName" contents "Andres" contenttype "text/plain" contentheader [list "adios: goodbye"]] \
6 -httppost [list name "lastName" contents "Garcia"] \
7 -httppost [list name "file" file "httpPost.tcl" file "basico.tcl" contenttype text/plain filename "c:\\basico.tcl"] \
8 -httppost [list name "AnotherFile" filecontent "httpBufferPost.tcl"] \
9 -httppost [list name "submit" contents "send"] -verbose 1