IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


int CGI_Install_Func_OnErr ( unsigned int  error_state,
void *  CgiFuncOnErr 
)

This function installs a CGI function on HTTP errors. The CGI function must be implemented in the same way than a CGI function, installed with CGI_Install(). For deleting an entry, install a null pointer.

Parameters:
error_state HTTP error state:

 07: 401 Unauthorized
 08: 404 not found
 10: 500 Server error (File system error)
 22: 503 Service not available (Out of memory)
CgiFuncOnErr Pointer to CGI handler function
Note:
Do not install a CGI function for HTTP state 401 (authentication required), which does a redirect to another file. This blocks the input of the username and password by a browser.
Returns:
zero on success, -1 on failure.
Since:
SC2x3 V1.00 - CLIB V1.00
See also:
CGI_Install()





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:36 2017 by Doxygen 1.6.1