]> git.sven.stormbind.net Git - sven/tclcurl.git/blob - tests/httpPost.tcl
releasing package tclcurl version 7.22.0+hg20160822-2
[sven/tclcurl.git] / tests / httpPost.tcl
1 package require TclCurl
2
3
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
10
11
12
13
14