Re: C++ CGI script

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Gerhard Hoffmann
Date: Monday, December 13, 2010 - 2:56 pm

endl is a so-called manipulator in C++. It outputs '\n'
and flushes the output buffer (using the flush method in the stream).

So, I would change the order:

cout << "Content-type: text/plain" << endl << endl << "Hello, World!" << endl;

Don't know if that solves it.

Regards


On Mon, Dec 13, 2010 at 10:18:58PM +0100, Jean-Francois wrote:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
C++ CGI script, Jean-Francois, (Mon Dec 13, 2:18 pm)
Re: C++ CGI script, Francesco Vollero, (Mon Dec 13, 2:31 pm)
Re: C++ CGI script, Ted Unangst, (Mon Dec 13, 2:44 pm)
Re: C++ CGI script, Gerhard Hoffmann, (Mon Dec 13, 2:56 pm)
Re: C++ CGI script, Francesco Vollero, (Mon Dec 13, 4:44 pm)
Re: C++ CGI script, Francesco Vollero, (Mon Dec 13, 4:51 pm)
Re: C++ CGI script, a.velichinsky, (Tue Dec 14, 2:56 am)
Re: C++ CGI script, Ivan Nudzik, (Wed Dec 15, 2:34 am)