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<html>"); > > puts("..."); > > puts("</html>"); > > > > > > But If I do so the header is completed and the body begins (with > > mod_fcgi.2.2 > > and fcgi-2.4.0 api library). > > > > Actually I need to collect all my headers in one big string and do > > > > puts(headers); > > puts("\r\n<html>"); > > puts("..."); > > puts("</html>"); > > > > Which works. Not that it is a problem, but it's quite annyoning > > sometimes, > > testing a new header. > > This doesn't seem immediately relevant to mod_fcgid, but I'm not sure I > understand what your problem is exactly. Are you saying that using puts() > once terminates the headers (ie. after the "Status: 200 OK" line),
I don't have and yes puts terminates the headers, and second yes, it isn't immediately relevant but it can be quite annyoing. > such > that the content-type line is ignored? If that happens, why do you still > have to put the 'end-header' line ("\r\n", just before <html>)? exactly. > > What exactly are you trying to do? Just write the headers using different > puts() calls? yes. That's what I'm trying. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mod-fcgid-users mailing list Mod-fcgid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users