C API Reference -- Ns_AbsoluteUrl

### Ns_AbsoluteUrl

#### Overview

Construct a URL from a URL and location

#### Syntax

        int Ns_AbsoluteUrl(
        Ns_DString *pds,
        char *url,
        char *baseurl
        );

#### Description

The Ns_AbsoluteUrl function constructs a URL, based on `url`, which may be incomplete, and `baseurl`, which is typically a location.

#### Examples

        Ns_DString ds;
        Ns_DStringInit(&ds);
        Ns_AbsoluteUrl(&ds, "/foo/bar.html", "http://www.foo.com:1234/");

The `ds` DString will contain "http://www.foo.com:1234/foo/bar.html".

Top of Page
Copyright © 1998-99 America Online, Inc.