websRedirect | GoAhead WebServer API | GoAhead EMF |
Redirect the user's browser to a new location
#include "webs.h" void websRedirect(webs_t wp, char_t *url);
wp | Web server connection handle |
url | The URL to redirect to |
The websRedirect procedure sends the user's browser to a new location. websRedirect sets the "Location" HTTP response header to the nominated url.
None
gnssprintf(path, "http://%s/mypage.htm", websGetHostUrl()); websRedirect(wp, path);