nstcl  >  Documentation  >  nstcl-http  >  util_httppost

Tcl Powered!

util_httppost

NAME

util_httppost — Posts form variables to a given URL

SYNOPSIS

package require nstcl-http ?1.0?
package require nstcl ?1.0?

::nstcl::util_httppost url formvars ?timeout? ?depth? ?http_referer?

DESCRIPTION

util_httpost makes an HTTP connection to url and uses the POST method to send formvars, waiting up to timeout seconds for a response, and following a maximum of depth HTTP redirects. If a value for http_referer is specified it will be passed alond to the remote server.

formvars should be of the form: foo=bar&bar=foo&etc=...

KEYWORDS

http, nstcl