|
util_httpget Opens an HTTP connection and gets a page
package require nstcl-http ?1.0?
package require nstcl ?1.0?::nstcl::util_httpget url ?headersSetIdVar? ?timeout? ?depth?
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.
http, nstcl