Re: (no subject)
"Alexander J. Oss" <[email protected]> Mon, 2 Dec 2002 21:52:40 -0500
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <002501c29a77$0c8dcac0$0101a8c0@puter> |
What happens if you run your application at the command prompt? Does it print the headers as you expect? ----- Original Message ----- From: "Сергей Островский" <[email protected]> To: <[email protected]> Sent: Monday, December 02, 2002 1:55 PM Subject: [help-cgicc] (no subject) Hello Friends, could anyone tell me what i did wrong? here is error: -- CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: -- here is my cgi program: -- #include <iostream> #include <vector> #include <string> #include "cgicc/Cgicc.h" #include "cgicc/HTMLClasses.h" #include "cgicc/HTTPHeaders.h" using namespace std; using namespace cgicc; int main(int argc, char **argv) { try { Cgicc cgi; // Send HTTP header cout << HTTPHTMLHeader() << endl; // Set up the HTML document cout << html() << head(title("Cgicc example")) << endl; cout << body() << endl; cout << h1("Hi! I Am a CGI") << endl; // Close the HTML document cout << body() << html(); } catch(exception& e) { // handle any errors - omitted for brevity } return 0; } the error occurs even if i try to send headers by this way: printf("Content-Type: text/html\n"); -- _______________________________________________ help-cgicc mailing list [email protected] http://mail.gnu.org/mailman/listinfo/help-cgicc