Re: tclcurl examples please



Hi,

I want to "http post" a file and some fields as "multipart/form-data",
and it looks so easy reading the curl docs.

Did you notice the example in the tarball?

curl::transfer -url 127.0.0.1/cgi-bin/post1.tcl -verbose 1 -post
1 \
-httppost [list name "firstName" contents "Andres" contenttype "text/
plain"] \
-httppost [list name "lastName" contents
"Garcia"] \
-httppost [list name "file" file "httpPost.tcl" contenttype
"text/plain"] \
-httppost [list name "submit" contents "send"]

But then, getting a progress bar may be easier if you exec curl

As for docs, go to

http://personal1.iddeo.es/andresgarci/tclcurl/english/docs.html

and search for httppost.


Andres
.



Relevant Pages

  • Re: tclcurl examples please
    ... and it looks so easy reading the curl docs. ... Did you notice the example in the tarball? ... getting a progress bar may be easier if you exec curl ...
    (comp.lang.tcl)
  • Re: tclcurl examples please
    ... and it looks so easy reading the curl docs. ... Did you notice the example in the tarball? ... and search for httppost. ... Oh, very fast reaction, a velocidad de la luz. ...
    (comp.lang.tcl)