I have the following html code snippet which submits the form data to the MediaWiki server. It works perfectly on my desktop browser (for both desktop view and mobile view). But it fails on my android application, which uses mobileview api (https://servername/wiki/api.php?action=mobileview) to retrieve and render webpages. I guess it fails because the response returned by the formAction is in html format. It cannot meet the expectation of the android app, i.e., a format returned by mobileview api.
Can you shed some light on how should I revise the formAction to make it works on android app?
$formAction = $wgScript.'?title='.$wcl->getNsText(NS_SPECIAL).':ProcessFormAction'; <form action=$formAction> <input 1 ... /> <input 2 ... /> </form>