Tool/software: TI-RTOS
I want to submit data to post cgi but it is error
from spru524j.pdf E4.1 PAGE 242
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI-RTOS
I want to submit data to post cgi but it is error
from spru524j.pdf E4.1 PAGE 242
It looks like you are using the HTTP Server example from the following link, correct?
http://processors.wiki.ti.com/index.php/TI-RTOS_HTTP_Example
The compiler include path is generated from your RTSC product selection. Please make sure you have the correct product selected in your project settings.
Project > Properties
General > RTSC (tab)
Products and Repositories > TI-RTOS for TivaC 2.16.00.08 > Select
You can also inspect the projects compiler include path. Please verify that it matches your physical installation.
Project > Properties
Build > ARM Compiler > Include Options
Thank you,
~Ramsey
thank you for your help,but i want to a post cgi examle,but your example not success. the wrong is "divider","tablefmt"is undefined.so I think it is wrong about your "spru524j.pdf".http://processors.wiki.ti.com/index.php/TI-RTOS_HTTP_Example don't have a post cgi examle.
for http://processors.wiki.ti.com/index.php/TI-RTOS_HTTP_Example
I want to know how to add a httpd for the HTTP of ti-rtos, if yes I can send data by ssi ,like LWIP
user3511888,
The sample code in the appendix is part of an old example which no longer ships with the product. It is provided for reference but is not intended to be copied into your program as it references symbols from other files. However, if you add the following to your program, the function should build.
#include <stdio.h> #include <ti/ndk/inc/netmain.h> #include <ti/ndk/inc/tools/cgiparse.h> #define html(str) httpSendClientStr(htmlSock, (char *)str) static const char *tablefmt = "<tr><td>%s</td><td>%s</td></tr>\r\n"; static const char *divider = "<hr WIDTH=\"100%\"><br>\r\n";
I have also attached the old example: 3480.example_cgi.zip
I hope this helps you complete your program.
~Ramsey