Results 1 to 2 of 2

Thread: Fancy Browser, Windows Server 2008 and empty webpage

  1. #1

    Default Fancy Browser, Windows Server 2008 and empty webpage

    I'm fairly new to Qt development.

    I'm able to run the fancy browser example on my Windows 7 box.

    I'm also able to run the fancy browser example on my Windows Server 2008 box. However there are certain pages on certain sites that fail to load on my Server 2008 box that work on my Windows 7 box.

    e.g.

    https://www.southwest.com/flight/loo...servation.html

    I'm guessing this has to do with some kind of security setting, but I have no way of even tracking this down. I've used DebugView and I don't get any messages.

    I stepped into the code and sure enough the onPageLoad returns a false.

    If no one has any thoughts, I'll have to take the next step and do some remote debugging, but that's always a PITA so I thought I would check here first.

  2. #2

    Default Re: Fancy Browser, Windows Server 2008 and empty webpage

    I solved my problem.

    I remote debugged my application running on Server 2008. After stepping through some QT code, I noticed an SSL handshake error.

    I ended up creating a custom NetworkAccessManager where I overrode the createRequest method.

    Inside the createRequest method, I grabbed the sslConfiguration object from the request object and called setPeerVerifyMode(QSslSocket::VerifyNone).
    Qt Code:
    1. QNetworkReply * myNetworkAccessManager ::createRequest (Operation op, const QNetworkRequest& req, QIODevice* outgoingData)
    2. {
    3. QSslConfiguration config = req.sslConfiguration();
    4. config.setPeerVerifyMode(QSslSocket::VerifyNone);
    5. config.setProtocol(QSsl::TlsV1);
    6.  
    7. QNetworkRequest request(req);
    8. request.setSslConfiguration(config);
    9.  
    10. return QNetworkAccessManager::createRequest(op, request, outgoingData);
    11. }
    To copy to clipboard, switch view to plain text mode 

    Perhaps someone knows why the SSL is failing to handshake on my Server 2008 box but not my Windows 7?

Similar Threads

  1. Replies: 6
    Last Post: 21st March 2011, 13:29
  2. Replies: 0
    Last Post: 17th March 2011, 03:17
  3. fancy browser: activate save link... menu
    By fatecasino in forum Qt Programming
    Replies: 0
    Last Post: 17th March 2011, 03:12
  4. Not able to run fancy browser and demo browser example applications
    By GoGetIt in forum Installation and Deployment
    Replies: 1
    Last Post: 16th August 2010, 06:23
  5. How to connect to ms sql server 2008 EXPRESS?
    By csoapy in forum Qt Programming
    Replies: 1
    Last Post: 7th April 2010, 19:22

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.