nstcl  >  Documentation  >  nstcl-http  >  util_httpget

Tcl Powered!

util_httpget

NAME

util_httpget — Opens an HTTP connection and gets a page

SYNOPSIS

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

::nstcl::util_httpget url ?headersSetIdVar? ?timeout? ?depth?

DESCRIPTION

util_httpget opens an HTTP connection and gets a url, waiting up to timeout seconds for a response, following at most depth HTTP redirects. If the value of headersSetIdVar is not the empty string, then it is assumed to be a valid ns_set, and the key/value pairs from the set are included as headers in the request to the remove server. If the value of headersSetIdVar is the empty string, then the result is the same as calling ns_httpget.

KEYWORDS

http, nstcl