MiGryz
3rd August 2010, 09:07
Hello.
I've got the next problem: it is needed to access a https page. It uses ssl encryption. How can I access that using QNetworkRequest, QNetworkAccessManager?
Most successful attempt was to set ssl default configuration to QNetworkRequest
QNetworkRequest request;
QSslConfiguration config( QSslConfiguration::defaultConfiguration() );
request.setSslConfiguration( config );
QUrl url( messageHeader );
request.setUrl( url );
// make a request
that was fine on one PC, but on another it loaded default configuration with no certificates at all. However it seems like I can get all the needed information, certificates and keys just trying to access the secured web page (example: https://facebook.com) How can I do that?
I've got the next problem: it is needed to access a https page. It uses ssl encryption. How can I access that using QNetworkRequest, QNetworkAccessManager?
Most successful attempt was to set ssl default configuration to QNetworkRequest
QNetworkRequest request;
QSslConfiguration config( QSslConfiguration::defaultConfiguration() );
request.setSslConfiguration( config );
QUrl url( messageHeader );
request.setUrl( url );
// make a request
that was fine on one PC, but on another it loaded default configuration with no certificates at all. However it seems like I can get all the needed information, certificates and keys just trying to access the secured web page (example: https://facebook.com) How can I do that?