Results 1 to 1 of 1

Thread: [solved] Basic Authentication with QNAM is not working correctly

  1. #1
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    131
    Thanks
    11
    Thanked 16 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default [solved] Basic Authentication with QNAM is not working correctly

    EDIT: Ok, forget it. I am just to stupid to enter "test" correctly... The code is working fine. Time to go home.

    Here was the code:
    Qt Code:
    1. void WebkitViewer::authenticationRequired(QNetworkReply* reply, QAuthenticator* authenticator) {
    2.  
    3. AuthentificationDialog dialog(getViewerWidget());
    4. dialog.setInformation(reply->url(), authenticator->realm());
    5.  
    6. if(dialog.exec() == QDialog::Accepted) {
    7. authenticator->setUser(dialog.getUserName());
    8. authenticator->setPassword(dialog.getPassword());
    9. }
    10. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by nightghost; 3rd March 2011 at 18:01.

Similar Threads

  1. Basic Authentication
    By lyhoanghai in forum Qt Programming
    Replies: 2
    Last Post: 16th May 2011, 12:00
  2. QNetworkAccessManager Http Basic Authentication?
    By jloundy in forum Qt Programming
    Replies: 5
    Last Post: 29th December 2010, 01:19
  3. Replies: 1
    Last Post: 19th March 2009, 14:40
  4. Drop not working correctly
    By rippa in forum Qt Programming
    Replies: 2
    Last Post: 11th November 2008, 16:13
  5. renderText is not working correctly
    By validator in forum Qt Programming
    Replies: 3
    Last Post: 27th May 2008, 17:55

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.