|
From: | Ed Sutton |
Subject: | RE: [lwip-users] CGI - Porting uIP webserver app (httpd-cgi.c) to lwIP? |
Date: | Mon, 23 Feb 2009 14:56:12 -0600 |
Hi Bill, Thank you for the warning as I was not aware. If I can figure out how to use it to POST updates to my embedded
device, for example to set a new static IP from a simple web page, I think I
will have what I need. So far it appears that CGI only supports
GET. The SSI includes work well enough though for displaying device
status on a web page. I found this searching for 0x20000000: /* If the data
is being read from a buffer in RAM, we need to copy it * into the PCB.
If it's in flash, however, we can avoid the copy since * the data is
obviously not going to be overwritten during the life * of the
connection. */ err =
tcp_write(pcb, hs->file, len, (hs->file < (char
*)0x20000000) ? 0 : 1); Thanks again, -Ed From:
address@hidden
[mailto:address@hidden On Behalf Of Bill
Auerbach Be careful of the
system dependency that
is hard coded
in the source code about the location of flash and RAM. Search for
0x20000000. Bill >That looks
perfect. The Adam Dunkel version of httpd.c had been modified by >Luminary Micro
to offer simple server-side-include (SSI) and Common Gateway >Interface (CGI)
capability. Exactly what I needed for basic setup and status >of my
device. Thank you very much for taking the time to send me this detailed >information! |
[Prev in Thread] | Current Thread | [Next in Thread] |