[Libevent-users] evhttp and reading large POSTed data (goal of a
multipart/form-data parser)
Niels Provos
provos at citi.umich.edu
Mon Mar 5 22:47:33 EST 2007
It would be the easiest if you were to give some example code. There
are two callbacks that libevent supports. One gives you all data at
the end of the request and the other one gives you updates as chunks
arrive.
Niels.
On 3/5/07, Elliot F <elliotf-libevent at gratuitous.net> wrote:
> Hello all,
>
> I'm writing a small web server using libevent's http layer, and would
> like some pointers on how to continue reading the input buffer. The end
> goal is a stream parser for a multipart/form-data. If one already
> exists, please let me know.
>
> When using 'EVBUFFER_DATA(evhttp_request->input_buffer)', I only get a
> portion of the upload. I'm assuming/hoping there is some way of
> associating a callback with that connection (or vice versa) to continue
> reading any data related to that request. Could someone point me in the
> right direction? Any tips and/or advice are welcome, including pointers
> to example code.
>
> Thank you in advance,
>
> Elliot F
> _______________________________________________
> Libevent-users mailing list
> Libevent-users at monkeymail.org
> http://monkey.org/mailman/listinfo/libevent-users
>
>
More information about the Libevent-users
mailing list