BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   How to pass a query string using browser field in blackberry on local (http://www.blackberryforums.com/developer-forum/261281-how-pass-query-string-using-browser-field-blackberry-local.html)

decimaltech 08-28-2012 02:38 AM

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 05:30 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.