Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Enabling ssl support breaks qwebview load() method
Forum Updated to NodeBB v4.3 + New Features

Enabling ssl support breaks qwebview load() method

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    unmanner
    wrote on last edited by
    #1

    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);@
    
    1 Reply Last reply
    0
    • U Offline
      U Offline
      unmanner
      wrote on last edited by
      #2

      Hi all,

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

      1 Reply Last reply
      0
      • U Offline
        U Offline
        unmanner
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved