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

ns_httpopen

Overview

Open an HTTP connection

Syntax

ns_httpopen method url ?rqset? ?timeout?

Description

ns_httpopen opens an HTTP connection and performs the specified method at the specified URL. The timeout is the number of seconds to wait for the connection to open. ns_httpopen sends the HTTP/1.1 "Host:" header for proper support of virtual hosting.

ns_httpopen returns a list with these three elements: a file descriptor for reading, a file descriptor for writing, and a set ID for a set describing the connection. The three elements of the set are date, server, and content type.

Top of Page

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