Previously, setting up the flags to make the prologue perfect on IIS and Apache on the same machine was difficult.
Old example code:
begin
{ on demos.href.com }
if posci('Apache',CgiServerSoftware)>0 then
begin
{ Apache web server runs on demos.href.com }
{ You MUST set UseHttpHeader to false for use with cgi-bin on Apache }
pWebApp.WebOutput.UseHttpHeader := False;
pWebApp.DynURLConfig.UseShortFormat := False;
end
else
begin
pWebApp.WebOutput.UseHttpHeader := True;
{ Note that HttpColon has already been set to "False", which works
with IIS and is compatible with IE 6 SP 1 released in Dec 2002}
pWebApp.DynURLConfig.UseShortFormat := True;
end;
end;