[ Previous ] [ Contents ] [ Index ] [ Next ]

ns_httpget

Overview

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]

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.