[Webkit-unassigned] [Bug 129379] Provide webkit_uri_request_get_soup_message for adding custom POST data
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 10 08:28:41 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=129379
--- Comment #3 from Sami Wagiaalla <swagiaal at redhat.com> 2014-03-10 08:25:39 PST ---
Hi Carlos,
Sorry for the delayed reply.
> I haven't looked at the details, though. Sami, could you point me to the code you have for WebKit1?
The class which contains most of the implementation is can be viewed here: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT%20WebKit/gtk/org/eclipse/swt/browser/WebKit.java
In line 1768 I use webkit_uri_request_get_http_headers get the headers object to add custom headers. If I understood your explanation correctly this is not the actual header object from the soup message but a temporary container the content of which get serialized, sent to the network process and later appended to the header object of the actual soup message.
The old code which customized POST data starts in line 2215:
There is a lot of Java stuff converting the Java string into a C allocating memory etc but the key function call is
WebKitGTK.soup_message_body_append (body, WebKitGTK.SOUP_MEMORY_TAKE, data, bytes.length);
Thanks for looking into this!
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list