Results 1 to 5 of 5

Thread: Using QHttp for authentication required

  1. #1
    Join Date
    Sep 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Using QHttp for authentication required

    I am working in Qt 4.3...My requriement is to fetch a html file from internet .....i am using QHttp in this regard.The site i am accessing requires authentication.
    i have written the code and its working fine for singel request.. when multiple request comes into picture i am getting problem because the site i am accessing doesnt allow more than 8 requests..

    i am creating new Http object for every request. i also tried using single global object.. but it also authenticates whenever new request i s.. can anyone help ..please

  2. #2
    Join Date
    Sep 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Cool Re: Using QHttp for authentication required

    I go the answer .. It not possibel using QHttp in 4.3.....
    but its possible Using QNetworkAccessManager which is availabel in later versions of Qt....
    correct me if i am wrong

  3. #3
    Join Date
    Mar 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Using QHttp for authentication required

    Hi,

    Can you provide the sample code of QHttp that you have written to connect to
    particular site and authenticate using user credentials programatically.
    I am working on the same.
    Early response awaited.
    Thanks in advance.

  4. #4
    Join Date
    Feb 2010
    Location
    Poland
    Posts
    27
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Using QHttp for authentication required

    Try build your QUrl object with following scheme: QUrl("username:password@host/path") or check out QUrl::setUserName(const QString & userName) and QUrl::setPassword(const QString & password) methods.

  5. #5
    Join Date
    Sep 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Using QHttp for authentication required

    Hi Prasad,

    Sorry presently i dont have the code with me but i can help you regarding this

    So are you trying to authenticate webapage programmatically??
    If so have you trie with authentication required slot mechanism!!!


    Quote Originally Posted by prasad.borkar View Post
    Hi,

    Can you provide the sample code of QHttp that you have written to connect to
    particular site and authenticate using user credentials programatically.
    I am working on the same.
    Early response awaited.
    Thanks in advance.

Similar Threads

  1. Basic Authentication
    By lyhoanghai in forum Qt Programming
    Replies: 2
    Last Post: 16th May 2011, 11:00
  2. QHTTP does not see tunneled TCP HTTP OK authentication response
    By SailingDreams in forum Qt Programming
    Replies: 6
    Last Post: 23rd May 2009, 09:39
  3. mutual authentication
    By abeinoe in forum Qt Programming
    Replies: 2
    Last Post: 6th April 2009, 06:22
  4. Replies: 11
    Last Post: 20th January 2009, 14:10
  5. QtSoapHttpTransport and Proxy authentication
    By rmagro in forum Qt Programming
    Replies: 3
    Last Post: 16th December 2008, 12:07

Tags for this Thread

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.