Enabling ssl support breaks qwebview load() method



  • Hello!

    Could you please help me with solution findind. The following code works fine when I use "http" preffix. But after switch to "https" page does not loaded properly. I have many php warnings about missed $_POST array items on the server side..

    @ QString url;
    QByteArray data;

    url.append("https://")
            .append(mainServerWebGateAddress);
    
    data.append("sessionKey=")
            .append(QString(rmSessionKey.c_str()))
            .append("&type=")
            .append(QString::number(type));
    
    if (RM_WEB_ACCESS_EDIT_AD == type ||
        RM_WEB_ACCESS_VIEW_AD == type) {
        data.append("&adId=").append(QString::number(adId));
    }
    
    QNetworkRequest request = QNetworkRequest(QUrl(url));
    
    request.setHeader(QNetworkRequest::ContentTypeHeader,
                      QVariant(QString("application/x-www-form-urlencoded")));
    
    request.setHeader(QNetworkRequest::ContentLengthHeader,
                      QVariant(qulonglong(data.size())));
    ui->webView->load(request,
                      QNetworkAccessManager::PostOperation,
                      data);@


  • Hi all,

    problem is still exist, and I want to aks help again..



  • I have a bad certificate signature, should I ignore sslErrors?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.