Altera_Forum
Honored Contributor
16 years agoSending requests to BOA while CGI is running...
Hi all,
My problem is very simple : After choosing some parameters in a classic HTML page, a CGI script is launched (according to the user parameters) but the program inside the cgi is very long (sometimes 10 minutes). The CGI execution is not the problem here it works perfectly ! During this execution, the main HTML page remains static and I decided to add some Javascript to indicate the time to the user for example or better, some C variables used inside the CGI ! My first idea to indicate some CGI variables to the user during the operation directly in the main HTML page was : 1) into the C-code, write periodically a HTML file like "value.html" in the FTP folder of uClinux (chmod /home/ftp 777) 2) the Javascript updates periodically into the main page an iframe (balise <iframe src="...">) with "../ftp/value.html" file as a source I successfully tried this manipulation in a local way (so Javascript code is good) but when I want to adapt it to BOA, it seems that the webserver does not accept requests from the client while executing the CGI.... does anyone knows a solution to allow boa to accept client requests during the cgi execution ??? Thanks for your help !