ns_httpget

Name

ns_httpget -- Open an HTTP connection and fetch a page

Syntax

ns_httpget url ?timeout? ?depth?

Description

ns_httpget opens an HTTP connection and fetches the page at the specified url. You can specify a timeout for opening the connection (the default is 30 seconds), and a maximum level of redirection (the default is 0). ns_httpget sends the HTTP/1.1 "Host:" header for proper support of virtual hosting.

Example

set page [ns_httpget http://www.aolserver.com]