Re: [Cppcms-users] Problem with PUT
Brought to you by:
artyom-beilis
|
From: Christian G. <chr...@gm...> - 2013-01-09 09:46:46
|
2013/1/9 Mario Palomo <mp...@us...>: > 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. >> [...] > Hi Mario > > 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); > works... thanks very much -- Christian Gmeiner, MSc |