Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
New Contributor
decimaltech
Posts: 2
Registered: ‎09-10-2012
My Carrier: airtell

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.

Please use plain text.
BlackBerry Development Advisor
lingBB10Dev
Posts: 35
Registered: ‎08-01-2012
My Carrier: T-Mobile

Re: How to pass a query string using browser field in blackberry on local

The code segment are jave code.

 

Probably you posted your question in wrong forum?

Please use plain text.