nstcl  >  Documentation  >  nstcl-http  >  ns_geturl

Tcl Powered!

ns_geturl

NAME

ns_geturl — Fetch a URL.

SYNOPSIS

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

::nstcl::ns_geturl url ?headersSetIdVar?

DESCRIPTION

ns_geturl retrieves the contents of the specified url. If headersSetIdVar is passed in (and is a valid ns_set) then the key/value pairs in the ns_set will be sent as headers when fetching the url.

KEYWORDS

http, nstcl