Download Dynamic C TCP/IP Users Manual

Transcript
cgi_redirectto
PARAMETERS
state
Current server struct, as received by the CGI function.
url
Fully qualified URL to redirect to.
RETURN VALUE
None - sets the state, so the CGI must immediately return with a value of 0.
LIBRARY
HTTP.LIB
SEE ALSO
cgi_sendstring
cgi_sendstring
void cgi_sendstring( HttpState *state, char *str );
DESCRIPTION
Sends a string to the user. You should immediately issue a “return 0;” after calling this function. The CGI is considered finished when you call this, and will be in an undefined state. This
function greatly simplifies a CGI handler because it allows you to generate your page in a buffer,
and then let the library handle writing it to the network.
PARAMETERS
state
Current server struct, as received by the CGI function.
str
String to send.
RETURN VALUE
None - sets the state, so the CGI must immediately return with a value of 0.
LIBRARY
HTTP.LIB
SEE ALSO
cgi_redirectto
188
rabbit.com
HTTP Server