websGetRequestDir | GoAhead WebServer API | GoAhead EMF |
Return the base directory containing the web request
#include "webs.h" char_t *websGetRequestDir(webs_t wp);
wp | Web server connection handle |
The websGetRequestDir procedure returns base directory containing the requested web page. The request directory and the request path define the location of the web page. UsewebsSetRequestPath to define a new directory and path for a request. This is most often used by URL Handlers when rewriting a request for later processing by other URL handlers.
Integer containing the size of the web page in bytes. Returns zero if the size has not been defined
dir = websGetRequestDir(wp);
websGetRequestPath, websGetRequestPassword, websGetRequestType, websSetRequestPath