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
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
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
*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
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
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