Re: [lwip-users] CGI handler initialization

2015-07-19 Thread Rishit
goldsimon@... writes: > > > rocco brandi wrote: > > if I set: > const tCGI myCGI[]={{string, extract}}; > http_set_cgi_handlers(myCGI,1); > the compiler warn: > error: syntax error before numeric constant > warni

Re: [lwip-users] CGI handler initialization

2011-07-18 Thread rocco brandi
Thanks Simon! the extract function was wrong and there was some problem in the inclusion of the files, too. now I'll try to configure the SSI handler ;-) Rocco --- Ven 15/7/11, goldsi...@gmx.de ha scritto: Da: goldsi...@gmx.de Oggetto: Re: [lwip-users] CGI handler initialization A: &qu

Re: [lwip-users] CGI handler initialization

2011-07-15 Thread goldsi...@gmx.de
rocco brandi wrote: if I set: const tCGI myCGI[]={{string, extract}}; http_set_cgi_handlers(myCGI,1); the compiler warn: error: syntax error before numeric constant warning: type defaults to 'int' in declaration of 'http_set_cgi_handlers' error: conflicting types for 'http_set_cgi_handlers' er

Re: [lwip-users] CGI handler initialization

2011-07-15 Thread rocco brandi
*pcValue[]); should I set tCGIHandler *(extract)() ? --- Ven 15/7/11, Simon Goldschmidt ha scritto: Da: Simon Goldschmidt Oggetto: Re: [lwip-users] CGI handler initialization A: "Mailing list for lwIP users" Data: Venerdì 15 luglio 2011, 15:15 rocco brandi wrote: > const tC

Re: [lwip-users] CGI handler initialization

2011-07-15 Thread Simon Goldschmidt
rocco brandi wrote: > const tCGI myCGI={string, extract};  //definition of my handler  >   > http_set_cgi_handlers(myCGI,1); // for now I have just one handler That's clearly wrong: http_set_cgi_handlers() accepts a tCGI pointer, but you pass a value. You either need to change the call: http_s

[lwip-users] CGI handler initialization

2011-07-15 Thread rocco brandi
Hi everyone!   finally I'm working with the last version of httpd. now I have got some problem in the initialization of the cgi handler. here's what I've done in a cgi.c module:   #include "httpd.h"   char string[]="test.cgi";    //the uri that is recognizes from the http header char