How to get the data header in the http response?

Hooked up a handler to the signal webkit_web_view submit-form. wanted to get data zagolovki http, but I haven't found easy way. I've tried in this function, I get these headers, but does not work.
static void handler_soup ( const char *name, const char *value, gpointer data ) {
 printf ( "%s: %s\n", name, value );
}

static void web_view_submit_form_cb ( WebKitWebView *webview, WebKitFormSubmissionRequest *request, gpointer data ) {
 printf ( "web_view_submit_form_cb\n" );
 const char *n_uri = webkit_web_view_get_uri ( webview );
 WebKitDownload *wd = webkit_web_view_download_uri ( webview, n_uri );
 WebKitURIResponse *wer = webkit_download_get_response ( wd );
 SoupMessageHeaders *h = webkit_uri_response_get_http_headers ( wer );

 soup_message_headers_foreach ( h, handler_soup, NULL );
}
April 19th 20 at 12:27
0 answer

Find more questions by tags WebkitCGTK+