Ah, OK.
First, jQuery http://api.jquery.com/jQuery.ajax/
data
Type: PlainObject or String
Data to be sent to the server. It is converted to a query string, if not already a string. It's appended to the url for GET-requests.
So jQuery does break it up into a POST query string for you.
Then, fastcgi++, via the Session tutorial, there's a piece of code environment().findPost("data").value
that apparently references the element <input type='text' name='data' value='Hola señor, usted me almacenó en una sesión' />
. No need to use spirit to parse incoming ajax data.
environment()
looks like it's initialized automatically for you in Fastcgipp::Request
.
I'm loving this framework more each day!
Now, I just need to figure out how to integrate it with websocket++...
How a multi-level json object will be converted into a query string and read in via fastcgi++ is probably best left to another question.