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.
