src/webserver.c
/** This config CGI function can parse param/value pairs and return an url that
 * is sent as a response by httpd.
 *
 * This example function just checks that the input url has two key value
 * parameter pairs: "foo=bar" and "test=123"
 * If not, it returns 404
 */
This config CGI function can parse param/value pairs and return an url that
is sent as a response by httpd.

This example function just checks that the input url has two key value
parameter pairs: "foo=bar" and "test=123"
If not, it returns 404
This config CGI function can parse param / value pairs and return an url that is sent as a response by httpd . This example function just checks that the input url has two key value parameter pairs : " foo = bar " and " test = 123 " If not it returns 404
static const char *
cgi_handler_config(int iIndex, int iNumParams, char *pcParam[], char *pcValue[])
{
  LWIP_ASSERT("check index", iIndex < LWIP_ARRAYSIZE(cgi_handlers));
  if (iNumParams == 2) {
    if (!strcmp(pcParam[0], "foo")) {
      if (!strcmp(pcValue[0], "bar")) {
        if (!strcmp(pcParam[1], "test")) {
          if (!strcmp(pcValue[1], "123")) {
            return "/index.html";
          }
        }
      }
    }
  }
  return "/404.html";
}
static const char * cgi_handler_config ( int iIndex , int iNumParams , char * pcParam [ ] , char * pcValue [ ] ) { LWIP_ASSERT ( " " , iIndex < LWIP_ARRAYSIZE ( cgi_handlers ) ) ; if ( iNumParams == 2 ) { if ( ! strcmp ( pcParam [ 0 ] , " " ) ) { if ( ! strcmp ( pcValue [ 0 ] , " " ) ) { if ( ! strcmp ( pcParam [ 1 ] , " " ) ) { if ( ! strcmp ( pcValue [ 1 ] , " " ) ) { return " " ; } } } } } return " " ; }
This config CGI function can parse param/value pairs and return an url that
 is sent as a response by httpd.
This config CGI function can parse param / value pairs and return an url that is sent as a response by httpd .