How to pass a query string using browser field in blackberry on local
String baseurl="file:///SDCard/dynamictest.html";
String postData = "name="+namearr+"&age="+agearr; Hashtable header = new Hashtable(); header.put("Content-Length", "" + postData.length()); header.put("Content-Type", "application/x-www-form-urlencoded"); byte[] post=postData.getBytes(); session.requestContent(baseurl, postData.getBytes(), new HttpHeaders(header)); this code is given in BB site but session.requestContent(baseurl, postData.getBytes(), new HttpHeaders(header)); method does not exist in rim. so i have used session.requestContent(baseurl, post, header); this method and wont be able to get the required solution, can anybody tell me the process to pass a query string using browser field in blackberry on local. |
All times are GMT -5. The time now is 01:50 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.