If I have understood it correctly, you need to add your web page to the table called FAT in the file FileSys.c.You need to either supply the web side as a constant string (eg. const UINT8 GoodHTTP204 = "HTTP/1.0 204 No Content\r\n\r\n"or else encode it to a constant array using a conversion program called CEncoder. Then recompile the project and download it to the target.
Please also check the uTasker solution if you wish to develop web server applications. It includes support for dynamic web server among other features. To develop and test web pages with the uTasker is very easy since it uses FTP. See other posings about uTasker in this forum and try it out at the following on-line demo.
http://22.214.171.124 to see the web server in operation.ftp://126.96.36.199 to see the pages loaded using Internet Explorer (in non-passive mode)Copy a page - eg. 0.HTM is the start side, using drag and drop you your PC.Open the file using an editor (or better still an html editor). Make some changesEg. Add the following line somewhere
Running time £vU0
and save the file.Now copy it back to the FTP server in the on-line demo using drag-and-drop.
Refresh the main side in your web browser (http://188.8.131.52 again) and you will see your changes and the web server will display the time it has been running (updated on each refresh).
As you will see it is quiet a comfortable solution and easier and efficienter as compiling the html into the code. Using the uTasker simulator all this can also be tested on a PC in real time so that the code only needs to be loaded to the target once the development has been completed.
Retrieving data ...