On Thu, Jun 23, 2022 at 1:15 AM Ahmad Ismail <[email protected]> wrote:
>
> I have already bumped into CGI (after asking the question here).
>
> However, I have some issues with CGI. For example, I have to add HEADERS 
> maintaining CRLF etc in the output. However, I want the CLI app to be totally 
> independent. I mean, I want to output regular text or json without any header.

I don't see any conflict, the app doesn't have to be aware it's being
run as/by a CGI program.  The only header you need to return in
practice is Content-Type and you can do that in a small wrapper that
doesn't do much more than run the CLI and return the output.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to