Accessing: www-Authenticate via kio?
Àlex Fiestas
afiestas at kde.org
Wed Apr 3 19:47:54 BST 2013
On Wednesday 03 April 2013 19:35:55 Albert Astals Cid wrote:
> 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.
Aaah sorry for the horrible explanation :/
I want to get the http www-authenticate header using kio.
Will try this PropagateHttpHeader thingy.
Thanks !
More information about the kde-core-devel
mailing list