I'm using fastcgi++ for my ajax pages, parsing and encoding with json-spirit. (I'm also very new to c++)
I'm having trouble figuring out how to access the post data.
I cut my teeth on .net & php, and those would conveniently convert a json data string (speaking in jQuery here, so my vocab is probably off) to simple variables or $_POST
array respectively.
I'm looking at the main example for reading POST data on fastcgi++ http://www.nongnu.org/fastcgipp/doc/2.1/a00003.html, but it only shows it->first
and it->second.value
. I can't find anything in the linked docs on that page.
Since I don't have the http knowledge to articulate this properly, is there a way to read a jQuery ajax()
data
string, for example, {foo: "bar", jim: "bob"}
by foo
and jim
in fastcgi++?
If not, should the it->first
simply be treated as a string to be parsed by json-spirit ?