websGetRequestLpath GoAhead WebServer API GoAhead EMF

Synopsis

Return the validated local pathname for a given request.

Prototype

 #include "webs.h" 

 char_t *websGetRequestLpath(webs_t wp); 

Parameters

wp Web server connection handle.

Description

The websGetRequestLpath procedure returns the validated local path for the current request. The local path is a combination of the request directory and request path and is created by the default URL handler. The local path is fully validated with all "." and ".." path segments interpreted and eliminated.

Return Value

Pointer to a statically allocated string. Do not call bfree.

Example

 
websGetRequestLpath(wp); 

Stability Classification

Stable.

See Also

websGetRequestDir, websGetRequestPath, websSetRequestPath