I am interested learning more about the D programming programming language, and especially using it for CGI programs. I have had a look at the standard libraries (Phobos) and did not see any support for CGI. Does anyone know of any good examples of CGI programs written in D?
CGI stands for Common Gateway Interface and provides an interface between the HTTP server and programs generating web content. These programs are better known as CGI scripts. They are written in a scripting language.
The Common Gateway Interface (CGI) is a standard for writing programs that can interact through a Web server with a client running a Web browser. These programs allow a Web developer to deliver dynamic information (usually in the form of HTML) via the browser.
In computing, Common Gateway Interface (CGI) is an interface specification that enables web servers to execute an external program, typically to process user requests. Such programs are often written in a scripting language and are commonly referred to as CGI scripts, but they may include compiled programs.
A CGI-bin is a folder used to house scripts that will interact with a Web browser to provide functionality for a Web page or website. Common Gateway Interface (CGI) is a resource for accommodating the use of scripts in Web design.
Adam Ruppe's library is probably the most complete CGI D solution at the moment:
https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff
Here is a cgi library for D I have written as a support library for a larger project. MIT licensed, free to use however you want.
https://github.com/josephRice/cgi_d
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With