Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: http_client sending json

$
0
0
Hi,
I've my listener set up to listen to any incoming methods. Now I'm trying to send via a client a json value. This is the point which doesn't work. If I want to send any Values I'm getting a Segmentation Fault Error. After running my Code in Debug Mode, the Programm stops at this method
void set_body(const json::value &body_data)
    {
        auto body_text = utility::conversions::to_utf8string(body_data.to_string());
        auto length = body_text.size();
        set_body(concurrency::streams::bytestream::open_istream(std::move(body_text)), length, _XPLATSTR("application/json"));
    }
it's in the http_msg.h on line 1156. My System is an Ubuntu 12.04.

hsgimit

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>