Skip to content Skip to sidebar Skip to footer

Andorid Webview How To POST Data To Application/x-www-form-urlencoded

I have a Webview In that I am loading web with Query string perimeters like String url = map.get('utype') + map.get('sid') + '/login/login.php?'+'&'+'strid' + '=' + map.get('s

Solution 1:

You need to call webView.postUrl(url, encodedData);

Values must be encoded with URLEncoder.encode(postData, "UTF-8") or "BASE64" depends on backend.

If its not working make sure you have url in correct format. You can also share it to here without exposing your values if you are not sure.


Post a Comment for "Andorid Webview How To POST Data To Application/x-www-form-urlencoded"