Hello,
We have some customers using Windows 7 and are unable to activate our software. After some searches, we found out that the URL::createInputStream method return nullptr instead of an instance of InputStream. In most cases on mac or Windows 8 / 10 it works though. To get a web result we use a similar code to :
URL url("https://some/url/like/this.php");
std::unique_ptr<WebInputStream> ins(dynamic_cast<WebInputStream*>(
url.createInputStream(false, nullptr, nullptr, "", timeout)
));
String result;
if(ins) {
result = ins->readEntireStreamAsString();
if(result.isEmpty() && (ins->isError())) {
result = "Error : during the connection";
}
}
else {
result = "Error : Unable to create an input stream";
}
What could be the problem ?