[FASTCGI] How to specify HTTP status with FastCGI

Aron Szabo aron at aron.ws
Fri Aug 21 11:13:46 EDT 2009


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 at mailman.fastcgi.com
> http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
>   



More information about the FastCGI-developers mailing list