websGetRequestPath GoAhead WebServer API GoAhead EMF

Synopsis

Return the URL path portion of the request URL

Prototype

#include "webs.h"
   	       
char_t *websGetRequestPath(webs_t wp);

Parameters

wp Web server connection handle

Description

The websGetRequestPath procedure returns the URL path. The URL path is the portion of the URL after the hostname and port have been stripped off.

Return Value

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

Example

path = websGetRequestPath(wp);

See Also

websSetRequestPath