How to setup D language with Apache httpd cgi?
BoQsc
vaidas.boqsc at gmail.com
Wed Jul 31 05:56:46 UTC 2019
On Tuesday, 30 July 2019 at 21:55:00 UTC, Adam D. Ruppe wrote:
> the required blank line to separate headers from content.
>
That's exactly what causes the Internal Server Error.
This is a working example.d
>#!/usr/bin/env rdmd
>import std.stdio;
>void main()
>{
>
> writeln("");
>
>
>}
And this one, even produce HTML content to the HTML body tag:
>#!/usr/bin/env rdmd
>import std.stdio;
>void main()
>{
> writeln("Content-type: text/html");
> writeln("");
> writeln("CGI D Example");
>
>}
Thanks, Adam D. Ruppe, it works.
More information about the Digitalmars-d-learn
mailing list