Thanks, the binary req->input_buffer has the posted name/value pairs in it.
The remaining problem is the offset where the name/value pairs start and
where they end: Any clues, code etc, much appreciated:
---
More details if you need them:
I'm used to a different C cgi API and if anyone has any C name/value
parser (name0=val0&nam1=val1&...&nameN=valN posted data) to use with
libevent's quick and cool evhttp interface let me know. There is one in
the library but I can not get it to work. (Have the latest stable version.)
Can't seem to find out how to get the input_buffer length. Or how to
find the beginning of the name value pair without using a binary string
search function that depends on the name of the first name/value pair.
The CGI specs for post data refer to the client informing the server
about CONTENT_LENGTH bytes. But it seems that the input_buffer has other
libevent data in it, maybe the CONTENT_LENGTH and CONTENT_TYPE of the
data sent but in the libevent headers. I can't find more on this issue.
Probably obvious to the initiated.
I realize that maybe another callback function works when all of the
"chunks" arrive.
---
Thanks! From a libevent newbie.
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users