Skip to content

deadlime/cgi-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:
[...]