Results 1 to 5 of 5

Thread: WinXP + MinGW http example doesn'work through ssl

  1. #1

    Default WinXP + MinGW http example doesn'work through ssl

    Installation guide for OpenSSL adviced me to copy opessl libs to C:/MinGW/lib and includes to C:/MinGW/includes.
    I did it.
    After that, I tried: configure -release -openssl -I C:/MinGW/include -L C:/MinGW/lib
    mingw32-make
    After that i launched C:\Qt\4.3.3\examples\network\http\release,
    entered url https://sourceforge.net/.
    The result was the message "Download failed: Found"
    Please, any help!
    P.S. This example works fine through http protocol without ssl support.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: WinXP + MinGW http example doesn'work through ssl

    Quote Originally Posted by pccrusher View Post
    Installation guide for OpenSSL adviced me to copy opessl libs to C:/MinGW/lib and includes to C:/MinGW/includes.
    I did it.
    Which guide instructs you to do that? I find it a bad way because it clutters your fine MinGW installation.

    After that, I tried: configure -release -openssl -I C:/MinGW/include -L C:/MinGW/lib
    mingw32-make
    After that i launched C:\Qt\4.3.3\examples\network\http\release,
    entered url https://sourceforge.net/.
    The result was the message "Download failed: Found"
    Please, any help!
    P.S. This example works fine through http protocol without ssl support.
    Could you try compiling a minimal test application which does nothing else but instantiates a QSslSocket?
    J-P Nurmi

  3. #3

    Default Re: WinXP + MinGW http example doesn'work through ssl

    Quote Originally Posted by jpn View Post
    Which guide instructs you to do that? I find it a bad way because it clutters your fine MinGW installation.
    I obtained this guide (C:\OpenSSL\OpenSSLhelp.chm) after installing http://www.slproweb.com/download/Win...SSL-0_9_8g.exe.

    Quote Originally Posted by jpn View Post
    Could you try compiling a minimal test application which does nothing else but instantiates a QSslSocket?
    Why do I need to instantiate a QSslSocket?
    The examle C:\Qt\4.3.3\examples\network\http\release\http.exe uses only QHttp and it have to work properly!
    To the point I found out this example works with some urls (f.e. https://j3d-webstart.dev.java.net/test/) but not with mine (https://isasoft.ru/bg/kassa)

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: WinXP + MinGW http example doesn'work through ssl

    Quote Originally Posted by pccrusher View Post
    Why do I need to instantiate a QSslSocket?
    Because it would have clearly indicated whether SSL support was properly enabled or not. The minimal sample app won't build unless SSL support was actually enabled.

    To the point I found out this example works with some urls (f.e. https://j3d-webstart.dev.java.net/test/) but not with mine (https://isasoft.ru/bg/kassa)
    Perhaps LiveHTTPHeaders could reveal some valuable information.
    J-P Nurmi

  5. #5

    Default Re: WinXP + MinGW http example doesn'work through ssl

    The decision was found by Messenger http://www.qtforum.org/thread.php?th...r=17124&page=2.

    Added code to bypass ssl erorrs. Now works.
    code:
    Qt Code:
    1. void HttpWindow::on_sslErrors(const QList<QSslError> &errors)
    2. {// connect to http.
    3. http->ignoreSslErrors();// just ignore ssl errors.
    4. QString err;
    5. Q_FOREACH(QSslError e, errors)
    6. {
    7. err += e.errorString() + "\n";
    8. }
    9. QMessageBox::information(this, "sslErrors", err);
    10. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by jacek; 18th February 2008 at 22:40. Reason: missing [code] tags

Similar Threads

  1. Build Qt4.3.2 from sources with MinGW under WinXP
    By Nyphel in forum Installation and Deployment
    Replies: 9
    Last Post: 30th October 2007, 18:05

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.