Subject: Re: [boost] CGI / FastCGI library update
From: Darren Garvey (darren.garvey_at_[hidden])
Date: 2010-05-19 19:30:21
On 19 May 2010 13:48, Jarrad Waterloo <jwaterloo_at_[hidden]> wrote:
> 2 file requests
> 1) On file upload it would be nice to be notified at the beginning, between
> processing the header and the multipart, and periodically, lets say every
> 4K (configurable), in addition to the already when processed.
I'd very much like to support this, but haven't had the time to implement
it. Marshall Clow has been working on a complete MIME library - it would be
very cool if he got that to support incremental parsing. (*cough*).
Also FastCGI supports giving a completed response before even the the
> request is completely processed. Allowing the request and response to be
> split in separate threads permits the server to give progress indicator
> while the file is being uploaded.
You can write a response before the entire request is read at the moment,
but you can't interrupt the processing of reading / parsing the post data
once you have started it.
2) Frequently, I disallow files from being saved on the server, rather I
> would like to process the file while it is being uploaded. Use case would be
> I may have a CSV parser that reads from a stream and would notify me by
> callback upon successfully reading a row which I would then process.
Hmm, I might have to rethink the upload routines. Thanks for the use-case.
On 5/18/2010 8:14 PM, Darren Garvey wrote:
>> I have packaged a version of a CGI / FastCGI library* up to sourceforge
>> would very much appreciate feedback and critique from interested parties.
>> Feedback from this list has been invaluable in the past. You can download
>> the library from:
>> The documentation still needs work, which I am doing as I can find the
>> It can be found online at:
>> and a brief feature list can be found from:
>> The library interface has reached a relatively stable point after a savage
>> bunch of changes recently and I'm quite pleased with how it is shaping up.
>> brief list of features of the library are:
>> * Out of the box support for FastCGI and CGI, tested with Apache 2.2 and
>> mod_fcgid on Windows XP, 7 and linux.
>> * Type-safe access to different request data (eg. get / post / environment
>> * Access to request data in STL-like constructs, with some CGI-specific
>> helper functions.
>> * Optional support for user-defined, strongly-typed sessions.
>> * A lightweight utility wrapper for using HTML / XML / etc. templates -
>> dubbed "stencils".
>> * A traits-based design that allows library users to alter the
>> implementation of parts of the library at compile time.
>> For reference, the code is also in the Boost sandbox at:
>> * the one started way back in the GSoC of 2007...
>> Unsubscribe& other changes:
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk