Re: How to specify HTTP status with FastCGI
Aron Szabo <aron-Iv/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! I'm not sure, but i think you should do this instead: "Status: 200 OK\r\nContent-Type: text/plain;charset=UTF-8\r\n\r\nDummy text" Give it a try ;) Aron Alexander Galkin (Audible US) wrote: > > I seem not to be able to specify HTTP status line with FastCGI. I have > Apache 2.2 on Solaris 10. > > If I send back > > "HTTP/1.1 200 OK\nContent-Type: text/plain;charset=UTF-8\n\nDummy text” > > Apache does not recognize it as valid output and sends client standard > error and I see in Apache log file > > FastCGI: comm with server "/opt/apache/cgi-bin/my_test.fcgi" aborted: > error parsing headers: malformed header 'HTTP/1.1 200 OK' > > I tried outher HTTP status and the same error. If I remove status line > and send > > "Content-Type: text/plain;charset=UTF-8\n\nDummy text” > > Everything works fine. > > Sasha > > ------------------------------------------------------------------------ > > _______________________________________________ > FastCGI-developers mailing list > FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org > http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers >