How to use https with Qt Network ?



  • Hi all,

    I have a question about https and qt network.

    I would like to know if I use https url, can I use the same code like http url or I must do some changes. Does someone can say which change I must do?


  • Lifetime Qt Champion

    Hi,

    If you're are on macOS there's nothing specific to do.
    If on Linux ensure you have OpenSSL installed
    If on Windows, download the OpenSSL libraries for your architecture and compiler and copy them in the same folder as your application.

    And at this time (19.05.2017), for both Windows and Linux, ensure that it's OpenSSL < 1.1. The 1.1 version broke compatibility. There's a new backend in preparation for that OpenSSL >= 1.1.

    If you have trouble on macOS, then try with the latest 5.9.


Log in to reply
 

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