forked fromglynos/cpp-netlib
- Notifications
You must be signed in to change notification settings - Fork425
Open
Milestone
Description
Since I cannot build version 0.12 with VS2015, I tried the latest version in the 0.13-release branch (6a7e92c).
I can build this version successfully (with VS2015, Boost 1.62.0, OpenSsl 1.0.2j) but when I try this simple code I get an unhandled exception in the last line of the try-block where I try to access the body.
boost::network::http::client client_;try{ boost::network::http::client::request request_("http://127.0.0.1:8000/"); request_ << boost::network::header("Connection", "close"); boost::network::http::client::response response_ = client_.get(request_); std::string body_ = body(response_);}catch (const std::exception& ex){ std::string message = ex.what();}
The error message is: "Unhandled exception at 0x75BDC54F in Test.exe: Microsoft C++ exception: boost::exception_detail::clone_implstd::exception_ptr at memory location 0x002CFC40."