websRedirect GoAhead WebServer API GoAhead EMF

Synopsis

Redirect the user's browser to a new location

Prototype

#include "webs.h"
   	       
void websRedirect(webs_t wp, char_t *url);

Parameters

wp Web server connection handle
url The URL to redirect to

Description

The websRedirect procedure sends the user's browser to a new location. websRedirect sets the "Location" HTTP response header to the nominated url.

Return Value

None

Example

gnssprintf(path, "http://%s/mypage.htm", websGetHostUrl());
websRedirect(wp, path);

See Also:

websDone