09-09-2019, 08:57 AM
TIWCGIRunner.ResponseHeaders and TIWCGIRunner.ResponseContent both contain whatever the CGI script generated, i.e. headers and content.
In general you don't need the headers (unless there is something very specific on it, but it is not common).
You can just take the ResponseContent and write as is to the IW Response like:
if CGIRunner.StatusResult = 0 then begin
WebApplication.Response.WriteString(IWCGIRunner.ResponseContent.Text);
end;
It will work as long as your ResponseContent contains a correct representation of a valid HTML page
In general you don't need the headers (unless there is something very specific on it, but it is not common).
You can just take the ResponseContent and write as is to the IW Response like:
if CGIRunner.StatusResult = 0 then begin
WebApplication.Response.WriteString(IWCGIRunner.ResponseContent.Text);
end;
It will work as long as your ResponseContent contains a correct representation of a valid HTML page