Getting the http username/password for a part

Waldo Bastian bastian at kde.org
Wed Mar 5 21:59:48 GMT 2003


On Wednesday 05 March 2003 22:34, Koos Vriezen wrote:
> On Wed, 5 Mar 2003, Waldo Bastian wrote:
> > Cookies:
> > 	dcop kded kcookiejar findCookies <URL> <WindowId>
> > WindowId may be 0
>
> Ok, I give it a try ..
>
> > Passwords:
> > Did you try "checkAuthInfo" ?
>
>     KIO::AuthInfo info;
>     QString errorMsg;
>     long s_seqNr = 1;
>     QCString replyType;
>     QByteArray params;
>     QByteArray reply;
>     KIO::AuthInfo authResult;
>
>     //(void) dcopClient(); // Make sure to have a dcop client.
>     info.url = url;

Does it help if you set info.verifyPath = true; ? If it is false it checks for 
the realm, which is unlikely to work.

Cheers,
Waldo
-- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com





More information about the kfm-devel mailing list