Bug 528550 - [Webkit2] Implement setUrl(..postData..) via webkitgtk api instead of java when/if webkitgtk api becomes available.
Summary: [Webkit2] Implement setUrl(..postData..) via webkitgtk api instead of java wh...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: (Awaiting webkitgtk api)
Keywords: cross-project, triaged
Depends on:
Blocks: Webkit2Enhancements
  Show dependency tree
 
Reported: 2017-12-12 14:35 EST by Leo Ufimtsev CLA
Modified: 2018-07-10 14:11 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leo Ufimtsev CLA 2017-12-12 14:35:20 EST
Currently in Webkit2, when setUrl(..) is called with PostData, then a workaround is triggered that uses java to make the http request because webkit2 doesn't provide the necessary api for it.

This was implemented here:
527738 – (webkit2portPostData) [Webkit2] implement setUrl(...POST..) support. (snippet 330) 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=527738

However, in the long-run, it would be better to have webkit2 api for this and do this without java. This is the bug to keep track of it.
Comment 1 Leo Ufimtsev CLA 2017-12-12 14:56:00 EST
Current webkit2 api doesn't allow the method to be set to post and doesn't allow us to specify post-data:
https://webkitgtk.org/reference/webkit2gtk/stable/WebKitURIRequest.html
(Webkitgtk 2.18)

We've put in a request and asked to have it added and them to comment in this bug when(if) it does:
https://bugs.webkit.org/show_bug.cgi?id=129379

To the future reader: Snippet330 is a good example of setUrl with postData pay load, may be a good stating point. Good luck.