websGetRequestDir | GoAhead WebServer API | GoAhead EMF
## Synopsis Return the base directory containing the web request. ## Prototype
     #include "webs.h"

     char_t *websGetRequestDir(webs_t wp);
## Parameters
wp | Web server connection handle.
## Description The websGetRequestDir procedure returns a base directory containing the requested web page. The request directory and the request path define the location of the web page. Use websSetRequestPath 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. ## Return Value Integer containing the size of the web page in bytes. Returns zero if the size has not been defined. ## Example
     dir = websGetRequestDir(wp);
## Stability Classification Stable. ## See Also websGetRequestPath, websGetRequestPassword, websGetRequestType, websSetRequestPath