X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=tests%2FhttpPost.tcl;fp=tests%2FhttpPost.tcl;h=ac2f882cdc4aade0399588a766af1089709f2fb2;hb=b0e6fb6e4379fb87fa2854b84a56c5ad49c644da;hp=0000000000000000000000000000000000000000;hpb=c9a5bcd9d76f699909b24e71a2a216d36062ab0b;p=sven%2Ftclcurl.git

diff --git a/tests/httpPost.tcl b/tests/httpPost.tcl
new file mode 100755
index 0000000..ac2f882
--- /dev/null
+++ b/tests/httpPost.tcl
@@ -0,0 +1,14 @@
+package require TclCurl
+
+
+curl::transfer -url 127.0.0.1/cgi-bin/post1.tcl -verbose 1 -post 1                   \
+        -httppost [list name "firstName" contents "Andres" contenttype "text/plain" contentheader [list "adios: goodbye"]]                                       \
+        -httppost [list name "lastName"  contents "Garcia"]                          \
+        -httppost [list name "file"      file     "httpPost.tcl" file "basico.tcl" contenttype text/plain filename "c:\\basico.tcl"]                            \
+        -httppost [list name "AnotherFile" filecontent "httpBufferPost.tcl"]         \
+        -httppost [list name "submit"    contents "send"] -verbose 1
+
+
+
+
+