Accessing: www-Authenticate via kio?
Albert Astals Cid
aacid at kde.org
Wed Apr 3 18:35:55 BST 2013
El Dimecres, 3 d'abril de 2013, a les 19:22:56, Kevin Krammer va escriure:
> On Wednesday, 2013-04-03, Àlex Fiestas wrote:
> > Is there anyway of getting the authentication realm using kio_http ?
> >
> > I tried with (http/webdav and adding an user as well)
> > KIO::get(KUrl("webdav://owncloudserver/remote.php/webdav/"));
> > job->setUiDelegate(0);
> > job->exec();
> > qDebug() << job->metaData();
> >
> > metada contains:
> > "charset", "utf-8"
> > "content-type", "application/xml"
> > "referrer", ""
> > "request-id", ""
> > "responsecode", "401"
> > "ssl_in_use", "FALSE"
> >
> > Is there anyway of getting this info with kio? I'm doing this in a kded
> > module so I really want to make it async.
>
> "this info" as in the metaData() result? Isn't that always there independent
> of whether you run exec() or retrieve it in a result slot?
"this info" as in www-Authenticate info that he is not seeing in metaData()
result (Yes, i understood the same as you did, i just clarified over IRC)
I've suggesting using the
metaData.insert( "PropagateHttpHeader", "true" );
thing.
Cheers,
Albert
>
> Cheers,
> Kevin
More information about the kde-core-devel
mailing list