[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Question about QT and http
From:       Warrior <ymg () azstarnet ! com>
Date:       2002-10-24 0:41:47
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 23 October 2002 05:11 pm, George Staikos typed the following:
> On October 23, 2002 19:15, Warrior wrote:
> > On Tuesday 22 October 2002 06:15 pm, Warrior typed the following:
> > > Hi everybody!
> > >
> > > I was wondering, how can I retreive an http header after successful
> > > call to QUrlOperator::get(). I get only the actual page, but not the
> > > header...
> > >
> > > Any advice would be greatly appreciated.
> > > Thanks.
> >
> > I guess nobody knows...ok, let me rephrase the question - is there any
> > way at all to get an http header for a given web page using either QT or
> > kdelibs?
>
>   You can get that with KIO.  It's provided as an optional metadata entry.
> You should set the slave config option "PropagateHttpHeader" to true, and
> then it will come back to you as "HTTP-Headers" metadata.  See KHTML for an
> example of how it is used.

George,

Thanks for the info, but I can't find find "PropagateHttpHeader" neither in 
API docs, nor in source code....ok, there's one hit in  
kioslave/http/http.cc:
bool HTTPProtocol::readHeader() {
[....]
  bool propagateResponse = 
           config()->readBoolEntry("PropagateHttpHeader", false);
[....]
}

...but it's still unclear how all the stuff fits together :(

Could you give me a short example of how it's used?

Thanks. 
- -- 
Bye, Warrior.
ICQ: 24496762
PGP Key ID: AA8D022B
- ----------------------------------------------------------------
Tagline for Wednesday, October 23, 2002, 17:34

A day without radiation is a day without sunshine.
- ----------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj23QcwACgkQSvufCqqNAityyQCgiH7tllq95sy+NeovRgNprmCY
CtYAn0sTY4PeHerASBPOHzXr0dhHWndV
=XzKj
-----END PGP SIGNATURE-----

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic