[webkit-gtk] How to connect SoupMessage signals from "resource-request-starting" ?
Emmanuel Rodriguez
emmanuel.rodriguez at gmail.com
Sun May 15 14:44:39 PDT 2011
Hi,
I'm trying to write a simple command line program that will list all
resources for a given page and that will print some simple metrics
(download time, file size, etc).
I though that I could achieve this by connecting to the "finished"
signal that SoupMessage exposes in order to track when the http
request was finished but this doesn't work as the signal is never
fired.
I have attached a sample program that shows what I'm trying to do. In
a nutshell, I'm connecting to the SoupMessage of the WebKitWebResource
that's passed as an argument to the signal
"resource-request-starting". I tried connecting to various signals and
property change notifications of the SoupMessage and my callbacks are
never called. From what I can see the instance that's accessible from
the signal's callback is not the one used by WebKit for doing the
actual HTTP request.
I'm obviously doing something wrong but I can't figure out what.
--
Emmanuel Rodriguez
-------------- next part --------------
A non-text attachment was scrubbed...
Name: download-cb.c
Type: text/x-csrc
Size: 2584 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20110515/02aa8e6a/attachment.bin>
More information about the webkit-gtk
mailing list