Hi,
Lately, I have tried to include a web server in my project which is based the on the NXP's LPC2378 (ARM) micro controller and has no external flash file system connected. The Web server is using the Virtual Rom file system, created by FCARM.
In my web server I want to use dynamic pages, so I need to write *.cgi and *.cgx to my micro controller's internal memory and being able to open them form the browser.
I have tried and successfully created a file – web.c, using the - FCARM.EXE utility.
This is my web.inp :
~index.htm, ~test.cgi, ~test2.cgi, ~test.htm, ~test.cgx, ~xml_http.js to Web.c root(..\..\_SW_LIBRARIES\HttpWebInterface\WEB)
I can successfully open both - index.htm and test.htm from my browser but I don't sure why, I can NOT open the test.cgi file.
The browser shows me the message - "The connection was reset".
I use TCP Library version 4.13
Could you please advice me, how can I solve this problem?
Thanks in advance.
Have you implemented your handler functions?
void cgi_process_var(uint8_t *qs)
void cgi_process_data(uint8_t code, uint8_t *dat, uint16_t len)
uint16_t cgi_func(uint8_t *env, uint8_t *buf, uint16_t buflen, uint32_t *pcgi)
Yes I did.
I can load those dynamic pages, when I put them on a flash memory but I don't want to use a flash memory...