Re: Best solution for output file directly
Brandon Long <blong <at> fiction.net>
2012-03-20 17:54:28 GMT
If you want to use the wrappers in CS, you can do something like:
cgiwrap_writef("Content-Length: %d\r\n\r\n", content_length);
In a standard CGI API, this is equivalent to using fprintf and fwrite to stdout.
On Tue, Mar 20, 2012 at 10:02 AM, David Jeske <davidj <at> gmail.com>
On Tue, Mar 20, 2012 at 9:52 AM, bxxx <vincebouix <at> yahoo.fr>
What is the best solution with clearsilver (C API of course) to send a file directly to the browser?
Clearsilver is for producing templated-output, such as HTML. If you want to just send a file directly to the user, you just output the bytes directly through your CGI API -- going right around clearsilver.
What C-CGI API are you using?