Re: CGI and euc
- Posted by jimcbrown (admin) Jan 14, 2013
- 2406 views
bugmagnet said...
jimcbrown said...
bugmagnet said...
I haven't been able to reproduce the 25% CPU utilisation. Nevertheless, here's code, html, and part of the Chrome session:
What is this code meant to demonstrate, if not the 25% CPU utilisation?
Umm ... the fact that it doesn't work; that trying to write a CGI EXE in Euphoria is a waste of hair.
Bugmagnet
Well, I didn't have quick access to a Windoze HTTP server with CGI set up, but I did test this on a Linux/GNU Apache 2 server.
Apache first complained that "HTTP/1.0 200 OK" was a bad/invalid header - giving me a 500 Internal Error on the web browser, but after I took the "HTTP/1.0 200 OK\r\n" out from the first puts(), it worked fine and I got a text file with the following contents:
console.log('foo');
Are you seeing different behavior?