Bug 167131 - It's not possible to perform a POST request with HTTPBody content in a WKWebView
Summary: It's not possible to perform a POST request with HTTPBody content in a WKWebView
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
: 145410 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-01-17 12:29 PST by Anders Carlsson
Modified: 2018-04-04 09:53 PDT (History)
5 users (show)

See Also:


Attachments
Patch (1.96 KB, patch)
2017-01-17 12:31 PST, Anders Carlsson
bdakin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2017-01-17 12:29:01 PST
It's not possible to perform a POST request with HTTPBody content in a WKWebView
Comment 1 Anders Carlsson 2017-01-17 12:31:31 PST
Created attachment 299052 [details]
Patch
Comment 2 Anders Carlsson 2017-01-17 12:59:03 PST
Committed r210825: <http://trac.webkit.org/changeset/210825>
Comment 3 Brady Eidson 2017-01-30 09:14:07 PST
*** Bug 145410 has been marked as a duplicate of this bug. ***
Comment 4 emakgul12 2017-03-18 07:42:27 PDT
In order to make use of solution, what should I do?
Comment 5 Brady Eidson 2017-06-08 22:24:40 PDT
(In reply to emakgul12 from comment #4)
> In order to make use of solution, what should I do?

- If you are a registered developer, install a developer beta of iOS11 or High Sierra and try it
- If you aren't, then wait for the first public beta of the new OSes and try it
- If you really don't want to bother trying in a beta, then wait for the public release of the new OSes and try it.
Comment 6 kam.voick 2018-03-06 02:41:31 PST
Hello, this appears to still doesn't work for me. HTTPBody (inside decidePolicyFor navigationAction: WKNavigationAction) returns nil with POST (iOS11).
Comment 7 Brady Eidson 2018-04-04 09:53:31 PDT
(In reply to kam.voick from comment #6)
> Hello, this appears to still doesn't work for me. HTTPBody (inside
> decidePolicyFor navigationAction: WKNavigationAction) returns nil with POST
> (iOS11).

This bug fix was about allowing the app developer to specify an HTTPBody with their request.

e.g. [WKWebView loadRequest:nsURLRequestWithHTTPBody] did *not* used to work, and now it does work.


What you are reporting - the inability to inspect the HTTPBody inside the decidePolicyForNavigationAction callback - is a different bug.