lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Weird problems with CGI's and SSI


From: address@hidden
Subject: Re: [lwip-users] Weird problems with CGI's and SSI
Date: Wed, 27 Jan 2010 19:09:40 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1

Which http server are you talking about? The one included with lwIP does not support CGIs currently!

I guess you are using a server provided by whoever packed lwIP and provides it for his hardware? Since we don't know the code of that server, I'm afraid we cannot help you here. (Unless someone is using the same hw/sw as you are.)

Simon


Daniel Berenguer wrote:
Hi, I want to expose two different problems that are maybe related between them:

1)
With INCLUDE_HTTPD_CGI defined and INCLUDE_HTTPD_SSI undefined, my CGI
handlers are correctly called but, whenever I open a plain html page
with images, the http server freezes. This doesn't happen with html
pages with no references to images.I've tried setting absolute paths
to images but this doesn't solve the problem. It seems that I can't
display images with CGI's enabled.

2)
With both INCLUDE_HTTPD_CGI and INCLUDE_HTTPD_SSI defined, I'm only
able to open any page (plain html, CGI or SSI) once. Then the http
server freezes.

The weird issue with the above problems is that the web server freezes
even when no CGI or SSI is called so I'm thinking that the problem
could be in httpd. I'm running a variant of an example from Luminary
micro. The CGI and SSI handlers are declared as follows:

static const tCGI g_psConfigCGIURIs[] =

{

     { "/iocontrol.cgi", ControlCGIHandler },      // CGI_INDEX_CONTROL

     { "/settxt.cgi", SetTextCGIHandler }          // CGI_INDEX_TEXT

};


http_set_ssi_handler(SSIHandler, g_pcConfigSSITags, NUM_CONFIG_SSI_TAGS);

http_set_cgi_handlers(g_psConfigCGIURIs, NUM_CONFIG_CGI_URIS);

Well, I'm quite lost with this so any help is welcome.

Thanks again,

Daniel.


_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users






reply via email to

[Prev in Thread] Current Thread [Next in Thread]