On Thu, 25 Apr 2002, Todd Volkert wrote: > Is there an equivalent to ns_httpget that you can use to POST data to a > form? Has anyone created such a construct?
You can try util_httppost from ACS Tcl. http://developer.arsdigita.com/api-doc/proc-view?proc=util%5fhttppost As far as I remember it doesn't handle multipart-form POST. But it is a problem only if you want to do file upload with your POST. Anyway you should check openacs.org for new version. You can also try http::geturl from standard TCL package http 2.2, but I belive it has the same limitation (and you have to load TCL package into AOLserver which is another problem). Creating general HTTP POST proc in quite difficult because you have to mime-encode the data. You can always open HTTP connection using ns_httpopen/util_httpopen and than write directly to that connection. Using that approach some time ago I successfully created proc which uploads image to the other webserwer. --tkosiak
