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
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
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.
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.
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
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.