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.

inside custom component

Native Development

Reply
New Contributor
Posts: 2
Registered: ‎09-10-2012
My Device: 9800
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.

Highlighted
Retired
Posts: 35
Registered: ‎08-01-2012
My Device: BB10 alpha-BB10 developer
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?