Results 1 to 3 of 3

Thread: Https server - logging by QSsl

  1. #1
    Join Date
    Mar 2009
    Posts
    29
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Https server - logging by QSsl

    Hi, i need to connect with https server and then logging on site. It's my current code:
    Qt Code:
    1. void Http_request::Logging(){
    2. request.setUrl(QUrl("https://examplesite.com"));
    3. request.setHeader(QNetworkRequest::ContentTypeHeader, QVariant("application/x-www-form-urlencoded"));
    4. QString dataRequest = "ACCOUNTLOGIN_ACCOUNTNAME=login&ACCOUNTLOGIN_PASSWORD=pass";
    5. reply = manager->post(request, dataRequest.toAscii());
    6. }
    To copy to clipboard, switch view to plain text mode 
    But i get some warnings:
    Qt Code:
    1. QSslSocket: cannot call unresolved function SSLv3_client_method
    2. QSslSocket: cannot call unresolved function SSL_CTX_new
    3. QSslSocket: cannot call unresolved function SSL_library_init
    4. QSslSocket: cannot call unresolved function ERR_get_error
    5. QSslSocket: cannot call unresolved function ERR_error_string
    To copy to clipboard, switch view to plain text mode 
    and don't recive any bytes of site. I tried to fix that by:
    QSslConfiguration sslConfiguration = reply->sslConfiguration();
    but it doesn't work correct, i recive some errors that 'QNetworkReply' class has no member named 'sslConfiguration'. So i'm looking for the simplest way to resolve problem with this secured server. Can anyone have some idea how may i fix it?
    Yours Trok

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Https server - logging by QSsl

    Do you have OpenSSL installed?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    Trok (24th September 2010)

  4. #3
    Join Date
    Mar 2009
    Posts
    29
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Https server - logging by QSsl

    Thanks a lot, i install OpenSSL and it's working like i wanted

Similar Threads

  1. QUrl and https
    By TomASS in forum Newbie
    Replies: 1
    Last Post: 15th March 2010, 23:49
  2. Qssl
    By tpthyd in forum Qt Programming
    Replies: 16
    Last Post: 15th June 2009, 10:53
  3. qssl
    By jsmith in forum Qt Programming
    Replies: 29
    Last Post: 7th April 2009, 23:21
  4. Https and windows
    By nicugh in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2009, 14:25
  5. Qt4.4 QSsl Won't Compile with MSVC2008
    By Surye in forum Installation and Deployment
    Replies: 2
    Last Post: 9th May 2008, 18:52

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.