Re: [Cppcms-users] Problem with PUT
Brought to you by:
artyom-beilis
|
From: Mario P. <mp...@us...> - 2013-01-09 08:46:57
|
On 08/01/13 14:02, Christian Gmeiner wrote: > Hi all... > > at the moment I am playing with some REST stuff and run into this > problem. I want to use put to update > an resource. Now I need to access the put payload, but I don't know > how I could do this. > [...] I use this to get the payload of a PUT request in the string 'content_': std::pair<void *, size_t> body = request().raw_post_data(); content_ = std::string((const char *)body.first, body.second); Mario |