title: Qt How can i send https request to server?
body: <p>I tried to send get request with <strong>https</strong> url. Reply is empty but there is no error message. I download OpenSSL and copied <strong>libeay32.dll</strong> and <strong>ssleay32.dll</strong> files to C:\Qt\Qt5.1.1\Tools\QtCreator\bin folder.</p>
  
  <p>Code:</p>
  
  <pre><code>QNetworkAccessManager *manager = new QNetworkAccessManager();
  QNetworkRequest request;
  QNetworkReply *reply = NULL;
  
  QSslConfiguration config = QSslConfiguration::defaultConfiguration();
  config.setProtocol(QSsl::TlsV1_2);
  request.setSslConfiguration(config);
  request.setUrl(QUrl(url));
  request.setHeader(QNetworkRequest::ServerHeader, "application/json");
  
  reply = manager-&gt;get(request);
  
  qDebug() &lt;&lt; reply-&gt;readAll();
  </code></pre>