following code
var webView: WKWebView!
override func loadView() {
super.loadView()
self.webView = WKWebView(frame: .zero)
view = webView
}
override func viewDidLoad() {
super.viewDidLoad()
var request = URLRequest(url: URL(string: "https://hosts")!)
request.httpMethod = "POST"
let bodyData = "data1=postData"
request.httpBody = bodyData.data(using: .utf8)!
self.webView.load(request)
}
I was able to get the POST parameter on Web site loaded on iOS 11.2, but could not get it on iOS 11.3
Why did not get it on iOS 11.3? Was the specification changed?
I want anyone to tell me the workaround. Please give me the answer.
Haven't encountered this error on 11+, but had it surfaced on 10.3.3, was OK on 12+ though. I've reverted to performing requests with bodies, manually using shared session, than inserting loaded data into WKWebView.