How to setup D language with Apache httpd cgi?

Adam D. Ruppe destructionator at gmail.com
Tue Jul 30 21:55:00 UTC 2019


On Tuesday, 30 July 2019 at 20:36:18 UTC, BoQsc wrote:
>>    writeln("Hello, world with automated script running!");

You didn't follow the cgi protocol here - you didn't output the 
content type and the required blank line to separate headers from 
content.

>>echo "Content-type: text/html"
>>echo ''
>>echo 'CGI Bash Example'

see how they did it here?


there are cgi libraries for D too (like my own) but for this 
simple case you just forgot a couple lines.


More information about the Digitalmars-d-learn mailing list