ns_httpopen method url ?rqset? ?timeout?
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.