Bug 167131

Summary: It's not possible to perform a POST request with HTTPBody content in a WKWebView
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, beidson, emakgul12, eugenebut, kam.voick
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch bdakin: review+

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.