How to read entire stream into a std::string?
std::string s(std::istreambuf_iterator<char>(stream), {});
Prepend std::string
titleURL = titleURL.insert(0, "https://www.imdb.com");
Learn something new every day!
std::string s(std::istreambuf_iterator<char>(stream), {});
titleURL = titleURL.insert(0, "https://www.imdb.com");