[ 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 n
    );

Description

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

Example

    /* 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 © 1996 America Online, Inc.