szy Member Licensed User Longtime User Jan 9, 2015 #1 webview component webview.postUrl method support?
szy Member Licensed User Longtime User Jan 9, 2015 #2 eclipse java android webivew code demonstrates String url = Pubvalue.url+"default.aspx"; //post访问需要提交的参数 String postDate = data.getStringExtra("result"); //由于webView.postUrl(url, postData)中 postData类型为byte[] , //通过EncodingUtils.getBytes(data, charset)方法进行转换 webview.postUrl(url, EncodingUtils.getBytes(postDate, "BASE64")); Upvote 0
eclipse java android webivew code demonstrates String url = Pubvalue.url+"default.aspx"; //post访问需要提交的参数 String postDate = data.getStringExtra("result"); //由于webView.postUrl(url, postData)中 postData类型为byte[] , //通过EncodingUtils.getBytes(data, charset)方法进行转换 webview.postUrl(url, EncodingUtils.getBytes(postDate, "BASE64"));
Erel B4X founder Staff member Licensed User Longtime User Jan 11, 2015 #3 You should use HttpUtils2 to make POST requests. Upvote 0