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

Ns_SkipUrl

Overview

Skip past path elements in the URL of a request

Syntax

    char *Ns_SkipUrl(
    Ns_Request *request,
    int nurl
    );

Description

The Ns_SkipUrl function returns the request URL after skipping past the first nurl elements.

Examples

    /* PathInfo - Request to return URL after the first 2 parts. */
    int
    PathInfo(Ns_Conn *conn, void *ctx)
    {
    	char *info;
    
    	/* Skip past the first two parts */
    	info = Ns_SkipUrl(conn->request, 2);
    	return Ns_ConnReturnNotice(conn, 200, info, NULL);
    }

Top of Page

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