Hello! Is there a way to open WebView URL with POST method and variables?
Sort of. What do you want to do? It’s possible that you might just want to use the HTTP package, then load the returned HTML from your server into the webview.
I find myself in the same situation
Could you show me how you solved it?
var form = "<form action='https://example.com/form.php' id='form' method='post'>"; form += "<input type='hidden' name='variable_1' value='value_1' />"; form += "<input type='hidden' name='variable_2' value='value_2' />"; form += "</form><script>document.getElementById('form').submit();</script>"; MyWebView.loadHtml(form);
It’s just what I need, it works very well
Sorry for “Thread-Hijacking”:
Just wanted to leave a BIG THANK YOU!!!