17 #ifndef HTTPUTILS_HPP_
18 #define HTTPUTILS_HPP_
23 #ifdef QNX_650_CPP11_TO_STRING_PATCH
24 #include <custom/string.h>
27 #include <boost/asio.hpp>
35 boost::system::error_code& errorCode)
37 boost::asio::io_service io_service;
38 boost::asio::ip::tcp::resolver resolver(io_service);
39 boost::asio::ip::tcp::resolver::query query(host,
41 boost::asio::ip::resolver_query_base::numeric_service);
43 auto endpointIt = resolver.resolve(query, errorCode);
46 return boost::asio::ip::tcp::endpoint();
static boost::asio::ip::tcp::endpoint resolveEndpoint(std::string host, std::uint16_t port, boost::system::error_code &errorCode)