Results 1 to 3 of 3

Thread: httpserver example does not work on Windows

  1. #1
    Join Date
    May 2020
    Posts
    8
    Qt products
    Qt5
    Platforms
    Windows Android

    Default httpserver example does not work on Windows

    I am trying to use the SSL portion of the qt-examples-master source code. I can build and run the code with non-SSL connections. When I run with SSL connections using either Chrome or my client application the code gets all the way through QSslServer::incomingConnection it does not get to handleConnection to start the HttpRequestHandler. I have tried other code samples I have found and they have similar issues. Is there an SSL example that has been tested on windows 10?

    Bruce

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,643
    Thanks
    13
    Thanked 1,592 Times in 1,520 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: httpserver example does not work on Windows

    Have you deployed the required OpenSSL libraries on the serve? These are detected at run time and, if not present, will cause SSL functions/negotiation to fail.

  3. #3
    Join Date
    May 2020
    Posts
    8
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: httpserver example does not work on Windows

    Quote Originally Posted by ChrisW67 View Post
    Have you deployed the required OpenSSL libraries on the serve? These are detected at run time and, if not present, will cause SSL functions/negotiation to fail.

    Chris:
    Thanks for your reply.

    Yes I have libeay32.dll and ssleay32.dll in the debug folder.

    When I call QString sslVersion = QSslSocket::sslLibraryBuildVersionString(); from my code it reports
    sslVersion OpenSSL 1.0.2p 14 Aug 2018

    Any other thoughts would be greatly appreciated.

    Bruce

Similar Threads

  1. OpenSSL 1.1.1 does not work in my application on Windows 10
    By lalesculiviu in forum Qt Programming
    Replies: 4
    Last Post: 21st June 2019, 00:20
  2. Replies: 1
    Last Post: 15th October 2014, 21:00
  3. Qt Designer Problems getting QWT to work with QT 5 on Windows
    By Hooch in forum Qt Tools
    Replies: 0
    Last Post: 21st March 2013, 21:24
  4. Can qwt work on Windows 7 x64?
    By RavenS in forum Qwt
    Replies: 0
    Last Post: 28th March 2009, 09:37
  5. QTcpServer as a HTTPServer + POST Requests
    By NoRulez in forum Qt Programming
    Replies: 2
    Last Post: 27th May 2008, 17:49

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.