I might also point out that the samples themselves will not compile with this processor. And there are inconsistsent samples in the folders
DC\samples cpip\http\httpupld2.c vs the samples in DC\samples\remoteprogramupdate
SO I’ve tried to adapt to my code as detailed below.
By renaming the “ZHTML” sample page (because it doesn’t fit the 8.3 naming limitations!) I have an FAT-based page that presents a browse option with an upload button (URL is http://192.168.2.50/fw/upload.zht and I have coded “.zht” appropriately, same as I’ve been using for years in early DC versions).
This file contains the following:
HTTP Upload Form
Last Firmware Uploaded:
Image corrupted or not compatible with this hardware.
Upload New Firmware:
In my code I have included the following:
I also have this:
FWREALM, FW_GROUP, 0x0000, SERVER_HTTP, SERVER_AUTH_DIGEST)
When I select a bin file (which is the same file that is running the code) and click upload, the browser URL goes to
“http://192.168.2.50/fw/upload.cgi” with a
404 Not Found message.
In my code I have included the following lines from the samples:
// function prototype for cgi function to handle file upload
int firmware_upload(HttpState * s);
#web_update firmware.install install_firmware
and the referenced functions firmware_upload, install_firmware and update_webvars have been copied in from a sample.
I have searched the DC install folder for upload.cgi: there is no such file.
I understand most of what is happening except what “cgi” is and how to use in in DC.
I’m using DC10.72, by the way.
This is a non-trivial question, as you can see by now