读书人

Android WebView 透过post形式访问

发布时间: 2012-08-15 16:57:16 作者: rapoo

Android WebView 通过post形式访问

//需要访问的网址String url = "http://www.cqjg.gov.cn/netcar/FindThree.aspx";//post访问需要提交的参数String postDate = "txtName=zzz&QueryTypeLst=1&CertificateTxt=dsds";//由于webView.postUrl(url, postData)中 postData类型为byte[] ,//通过EncodingUtils.getBytes(data, charset)方法进行转换webView.postUrl(url, EncodingUtils.getBytes(postDate, "BASE64"));
?

读书人网 >操作系统

热点推荐