How to get HTTP-Requests

Dawit A. adawit at kde.org
Wed Aug 4 16:08:12 BST 2004


On Wednesday 04 August 2004 10:14, Baumann, Thomas wrote:
> Hi there,
>
> how can I log HTTP-requests sent by KHTMLPart? I tried to modify
> khtml_part.cpp that way it takes the request out of KIO::Job's metadata in
> slotFinished(KIO::Job *).
>
> [code]
>    KIO::MetaData meta = job->metaData();
>    request = meta["requestheaders"];
> [/code]
>
> Unfortunately, if the request is redirected, I just get the last request
> sent by the job. Does anybody know how to get all requests?
>
> ideas are welcome...

Depends on what you are trying to do. Do you want to do something with the 
header or do you just want to look at the output ?

-- 
Regards,
Dawit A.
"Preach what you practice, practice what you preach"




More information about the kfm-devel mailing list