![]() |
![]() ![]() ![]() ![]() |
Skip past path elements in the URL of a request
char *Ns_SkipUrl( Ns_Request * request, int n );
The Ns_SkipUrl function returns the request URL after skipping past the first n elements.
/* 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); }