Boa web server + cgi

hello guys,

I am trying to write an easy hello world cgi script for the boa web server on my ConnectME9210. but every time I try to execute it I get the error “502 Bad Gateway
The CGI was not CGI/1.1 compliant.” The boa error log always say “cgi_header: unable to find LFLF”. I don’t understand this because the first line which is printed to stdout in my cgi script is "Content-Type: text/plain

". Am I writing the ‘\r’ in the wrong place? Does anybody know or have an example application??

kind regards,
Jazz

Just a small code fragment:

std::cout << "Content-type: text/html

";

std::cout << "

";
std::cout << “” << "
";
this->printHTML_Header();
this->printHTML_Body();
std::cout << “” << "
";