Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12747 Discussions

Who can provide onther better method to implement

Altera_Forum
Honored Contributor II
965 Views

HI all: 

 

I used boa cgi success in nios2 uclinux. 

 

In my cgi application program only use printf()  

 

example: 

 

printf("Content-type: test/html\n\n"); 

printf("<HTML><HEAD><TITLE>CGI Test</TITLE></HEAD>\n"); 

printf("<BODY><H2>CGI test</H2><PRE>\n"); 

printf("Arguments: %u\n",argc); 

 

for(i = 0; i < argc; i++) 

{  

printf("Argument %u: %s\n", i, argv[i]); 

printf("Query string: %s\n", getenv("QUERY_STRING")); 

printf("Remote addr: %s\n", getenv("REMOTE_ADDR")); 

printf("</PRE></BODY></HTML>\n"); 

 

But this method is not good. 

 

 

Who can provide onther better method to implement dynamic HTML? 

 

thanks a lot.  

Alex
0 Kudos
0 Replies
Reply