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



Fetch a remote URL.


    int Ns_FetchURL(
    Ns_DString *pds,
    char *URL,
    Ns_Set *headers


The Ns_FetchURL function connects the AOLserver to another HTTP Web server and requests the specified URL. The URL must be fully qualified. The content is appended to the given Ns_DString. If the headers is not NULL, the HTTP headers returned in the response from the remote server are appended to the set. Ns_FetchUrl does not currently handle redirects or requests for any protocol except HTTP. Use Ns_FetchPage to get pages on the local server.

Top of Page

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