Results 1 to 2 of 2

Thread: Some https links connect succesfull, others not

  1. #1
    Join Date
    Aug 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Some https links connect succesfull, others not

    I try to create a Python script for downloading my IS invoices. Connecting to the server results in a time-out. It looks like the HTTPS server hello msg is not sent. Ignore SSL errors does not help.

    The Wireshark data capture shows TLSv1 is used in the FireFox session (in which a Server Hello is returned) and SSL in the Qt session. For the successfull banksite TLSv1.2 is used both by FireFox and Qt. Based on the Qt doc on SSL/TSL and certificates I assumed that Qt manages the appropriate protocol (SSL/TSL) and version to be used.

    So my question is, what causes the one HTTPS Server to connect and the other not? And moreover, what to do to make Qt successfully connect to the latter?

    Regards,
    Johan

    Attached are the scripts and Wireshark data capture textfiles.
    Both scripts connect successfully to the bank (https://bankieren.rabobank.nl) but not to the IS (https://www.ziggo.nl)
    webkit_test_ssl.py - simple as possible script
    webkit_example_1_simple.py - effort to get more detailed error info
    capture_rabobank_qt - successful Qt connect to bank
    capture_rabobank_firefox - successfull FireFox connect to bank (not attached, due to file # limitations)
    capture_ziggo_firefox - successfull FireFox connect to IS
    capture_ziggo_qt - failed connect to IS

    Details
    Snow Leopard (OS X 10.6.8) Webkit version 6534.57.2 (== Webkit 5.1.7, I assume, based on Google result "Webkit version 6534.57.2")
    Python 2.7 (Macports package)
    PyQt4 (py27-pyqt macports package)
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Some https links connect succesfull, others not [Fixed]

    Setting the SSL protocol and switching of JavaScript makes the script work. Not really clear to me why, in particular the latter as JS is used to generate content and my script uses JS to generate onClick events. Anyway, it is solved now. Attached is a working version.
    Regards,
    Johan
    Attached Files Attached Files

Similar Threads

  1. Qt 4.7 Https?
    By MorrisLiang in forum Qt Programming
    Replies: 6
    Last Post: 3rd November 2010, 08:54
  2. Replies: 10
    Last Post: 12th September 2010, 19:16
  3. QNetworkAccessManager and https. help!
    By valerino in forum Qt Programming
    Replies: 0
    Last Post: 22nd July 2010, 14:13
  4. QUrl and https
    By TomASS in forum Newbie
    Replies: 1
    Last Post: 15th March 2010, 22:49
  5. Https and windows
    By nicugh in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2009, 13:25

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
  •  
Qt is a trademark of The Qt Company.