Re: [Mod-fcgid-users] Header and Body separation

2007-10-30 Thread Ingo Krabbe
Am Dienstag, 30. Oktober 2007 18:30:11 schrieb Ross Thomas: > On Tue, 30 Oct 2007 17:48:58 +0100, "Ingo Krabbe" <[EMAIL PROTECTED]> > > said: > > puts("Status: 200\r\n"); > > puts() by definition will add a '\n' to the end of the string during > output. > This effectively terminates the headers. o

Re: [Mod-fcgid-users] Header and Body separation

2007-10-30 Thread Ingo Krabbe
Am Dienstag, 30. Oktober 2007 18:10:27 schrieb Darren Garvey: > On 30/10/2007, Ingo Krabbe <[EMAIL PROTECTED]> wrote: > > Since I'm working low level I like such statements like: > > > > puts("Status: 200\r\n"); > > puts("ContentType: text/html\r\n"); > > puts("\r\n"); > > puts("..."); > > puts("")

Re: [Mod-fcgid-users] Header and Body separation

2007-10-30 Thread Ross Thomas
On Tue, 30 Oct 2007 17:48:58 +0100, "Ingo Krabbe" <[EMAIL PROTECTED]> said: > > puts("Status: 200\r\n"); puts() by definition will add a '\n' to the end of the string during output. This effectively terminates the headers. Use either fputs() or one of the printf() variants to output your text.

Re: [Mod-fcgid-users] Header and Body separation

2007-10-30 Thread Darren Garvey
On 30/10/2007, Ingo Krabbe <[EMAIL PROTECTED]> wrote: > > > Since I'm working low level I like such statements like: > > puts("Status: 200\r\n"); > puts("ContentType: text/html\r\n"); > puts("\r\n"); > puts("..."); > puts(""); > > > But If I do so the header is completed and the body begins (with >

[Mod-fcgid-users] Header and Body separation

2007-10-30 Thread Ingo Krabbe
Hi, I'm developing a C fcgi application and I got quite far with that, enabling modular programming and several higher level modules that can now be used from the web application. It's quite flexible and runs as fast as light. Since I'm working low level I like such statements like: puts("Sta