Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 773 Bytes

README.md

File metadata and controls

48 lines (34 loc) · 773 Bytes

CGI playground

Related blog post:

Technologies left behind (english)
Hátrahagyott technológiák (hungarian)

To start the test server run:

$ docker compose up -d

To stop the test server run:

$ docker compose down

Building the C code for CGI:

$ gcc test.c -o cgi-bin/test

Running the CGI scripts:

$ curl 'http://localhost:8081/cgi-bin/test.pl?foo=bar'
Hello, World.
[...]

Accessing the FastCGI server:

$ curl 'http://localhost:8081/fcgi-bin/foo/bar'
Params:
[...]

Accessing the SCGI server:

$ curl 'http://localhost:8081/scgi-bin/foo/bar'
Headers:
[...]