Post

Replies

Boosts

Views

Activity

WKWebView using URLRequest HTTPBody is nil in WKNavigationDelegate (decidePolicyFor)
We are migrating from deprecated API UIWebView to WKWebView.In WKWebView we loading one login page. After the success, we wanna try to catch the body and try to call other internal API.But we got nil in the below delegate method.func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: ((WKNavigationActionPolicy) -> Void)) {print(navigationAction.request.httpBody) //nil}However, UIWebView getting a proper HTTP body.
11
0
9.1k
Nov ’19