[webkit-gtk] Ubuntu 12.04 LTS, libwebkitgtk-3.0-0, question about 'resource-request-starting' signal and data posted

Erik Poupaert erik at sankuru.biz
Thu Jun 21 23:23:49 PDT 2012


I am trying to get hold of what data is being posted during the
'resource-request-starting' signal, by reading the content of the
WebKitNetworkRequest *request variable that comes through. I more or
less try to do the following:

SoupMessage* soupMessage=webkit_network_request_get_message(request);
SoupMessageBody* request_body=soupMessage->request_body;
SoupBuffer* soupBuffer=soup_message_body_flatten(request_body);
const char* requestData=soupBuffer->data;

I had expected to find the form variables posted in requestData. I am
obviously doing something wrong, because there is nothing to be found
in requestData. Does anybody know how to get hold of the form
variables posted?
They should probably look like: a=1&b=2&c=whatever ...


More information about the webkit-gtk mailing list