我需要检查http服务器上是否存在if文件,我有完整路径,当我通过浏览器尝试时一切正常,但是当我尝试在代码中执行时:
if(QFile::exists("http://www.foo.com/hidden/Support/myapp_1.1.2_installer.exe" ))
    {
        qDebug("file exists");
        return true;
    }
    else
    {
        qDebug("file not exists");
    }
正如它写在这里: http ://www.qtcentre.org/archive/index.php/t-43712.html?s=b9ae49962c9219aec93b43c514e2ba33
无论如何,它总是让我返回错误..我做错了什么,这是正确的方法吗?