I would like to load a POST request using SFSafariViewController, just like webView.loadRequest(request)
. But I find init(url:entersReaderIfAvailable:)
accepts NSURL only. Is it possible to do POST?
Asked
Active
Viewed 3,319 times
2

yzyzsun
- 367
- 4
- 11
-
Why do you need to? Explain the situation you're in. – Wain May 10 '16 at 06:47
-
password autofill using WKWebView, like the way it works in safari or SFSafariViewController? – Preetam Jadakar Aug 26 '19 at 07:24
2 Answers
1
It's possible that you can do the request in advance, but I guess you're doing it to get cookies or something like that..
So, untested, but you could create a local web page that you load with some parameters, it executes the POST using JavaScript and after its complete it redirects (if required) to some other URL.

Wain
- 118,658
- 15
- 128
- 151