websSetRequestPath | GoAhead WebServer API | GoAhead EMF |
Set the directory and path fields for a request
#include "webs.h" void websSetRequestPath(webs_t wp, char_t *dir, char_t *path);
wp | Web server connection handle |
dir | The directory for the request |
path | The path for the request |
The websSetRequestPath procedure sets the URL directory and path fields which define the location of the web document. Always use "/" delimiters in both the directory and path parameters. Do not use the "\" path specifier even if your native operating system (eg. Windows) uses this path separator.
None
websSetRequestPath(wp, "C:/webdir", "/doc/mypage.htm");