And...the magic answer to make this form actually work with the uIP webserver is that:

 1.  the form's "method" has to be GET not POST otherwise the URL CGI
   "call" is not made visible/sent correctly/processed.
2. the webserver has to be configured with URL/CGI mapping enabled
   (CONFIG_NETUTILS_CGIPATH)


On 31/05/2025 11:16, Tim Hardisty wrote:

I'm using the netutils uIP webserver to provide a simple interface, served by my board, for configuration, log downloads, firmware updates, etc.

Forgive me if the terminology is wrong here, but I am trying to find documentation - NuttX or elsewhere - about the %! "tag" that denotes a call to a CGI function. Specifically, I am trying to add a form that calls a script from a button, where do-firmware-update is my CGI function:

<form action="%! do-firmware-update" method="post" enctype="multipart/form-data" accept-charset="UTF-8">

This gets served with nothing after the first opening quote character on this line so i am assuming I am "calling" the script incorrectly but can't find anything anywhere to tell me how to do this.

Can anyone point me in the right direction?

Thanks!

TimH

Reply via email to