What HTTP headers does nginx send to SCGI and FastCGI application servers?

I’ve looked through the nginx source code and couldn’t find a specific
list of HTTP headers that nginx passes through to SCGI and FastCGI
application servers.

I’m writing a simple SCGI and FastCGI application server in C++ and need
to know what set of options are available to use.

Unfortunately I’m not in a position to run a debugger just yet as the
library code is in the process of being created and I haven’t got a
daemon written yet to listen for connections.

Is there a list somewhere? I’ve looked through the CGI 1.1 specification
and it mentions several headers that are sent but I’m pretty sure that
nginx sends other headers as well.

Rather than the source, you should check the docs :slight_smile:

http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#parameters

On Tue, Dec 2, 2014 at 6:11 PM, Some D.
[email protected]

On 02/12/14 18:15, Richard S. wrote:

Rather than the source, you should check the docs :slight_smile:

Module ngx_http_fastcgi_module

Not entirely what I meant but thanks for the link.

I guess I’ll just write my daemon and take a dump of all the headers
manually to see exactly what to expect. At least then I can see how the
library will perform under real world conditions.

On Tue, 02 Dec 2014 20:41:36 +0000, Some D. wrote:

I guess I’ll just write my daemon and take a dump of all the headers
manually to see exactly what to expect. At least then I can see how the
library will perform under real world conditions.

You could try something similar with netcat. The following will listen
on port 8111 and print what it receives:

nc -l 8111


Cole

On 02/12/14 21:35, Cole Tierney wrote:

Cole
Cool! Didn’t know about that.

Thanks for the tip.