websSetRequestPath GoAhead WebServer API GoAhead EMF

Synopsis

Set the directory and path fields for a request

Prototype

#include "webs.h"

void websSetRequestPath(webs_t wp, char_t *dir, char_t *path);

Parameters

wp Web server connection handle
dir The directory for the request
path The path for the request

Description

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.

Return Value

None

Example

websSetRequestPath(wp, "C:/webdir", "/doc/mypage.htm");

See Also

websGetRequestDir, websGetRequestPath, websGetRequestLpath