Answer the question
In order to leave comments, you need to log in
C++ | boost::asio+ssl?
Good day!
I would like to know how to connect via SSL?
int main()
{
boost::asio::ip::tcp::iostream stream;
stream.expires_from_now(boost::posix_time::seconds(60));
stream.connect("api.vk.com", "http");
if (!stream)
{
std::cout << "Error: " << stream.error().message() << "\n";
}
stream << "GET тут запрос";
stream.flush();
std::cout << stream.rdbuf();
system("pause");
return 0;
}
Answer the question
In order to leave comments, you need to log in
Instructions for Boost::ASIO: www.boost.org/doc/libs/1_59_0/doc/html/boost_asio/...
Using the HTTP client in cpp-netlib with HTTPS connectivity: cpp-netlib.org/0.11. 1/reference/http_client.html
is it necessary to use asio?
you can try making https requests with Poco
pocoproject.org/docs/Poco.Net.HTTPRequest.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question