Skip to content

Instantly share code, notes, and snippets.

@xse
Created October 19, 2019 23:02
Show Gist options
  • Select an option

  • Save xse/eb08b43dddbaac300e92b7bfd3f1711b to your computer and use it in GitHub Desktop.

Select an option

Save xse/eb08b43dddbaac300e92b7bfd3f1711b to your computer and use it in GitHub Desktop.

Revisions

  1. xse created this gist Oct 19, 2019.
    22 changes: 22 additions & 0 deletions test-fcgi-header
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    xse@krkrkr ~/kcgi (git)-[master] % ./regress/test-fcgi-header
    :(
    * Trying ::1:17123...
    * TCP_NODELAY set
    * connect to ::1 port 17123 failed: Connection refused
    * Trying 127.0.0.1:17123...
    * TCP_NODELAY set
    * Connected to localhost (127.0.0.1) port 17123 (#0)
    > GET / HTTP/1.1
    Host: localhost:17123
    Accept: */*
    Testing:123
    Testing-Test:321

    child.c:1197: RFC violation: REMOTE_ADDR not set
    child.c:1223: RFC violation: SERVER_PORT not set
    * Received HTTP/0.9 when not allowed

    * Closing connection 0
    fcgi.c:677: fcgi_waitread: exit request
    child.c:2039: FastCGI: worker termination
    1 xse@krkrkr ~/kcgi (git)-[master] %