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

Java Development

Posts: 10
Registered: ‎10-15-2010
My Device: Blackberry 6 9800

BrowserField.requestContent HTTP Post not working!!! need help

Hi All,


I have a very simple logic which basically tries to post data  to my websphere application url, if i debug the code there i do not see any post parameters. This is the code i am using


BrowserFieldConfig loConfig = new BrowserFieldConfig();
         Object loObject = null;

         loConfig.setProperty(BrowserFieldConfig.JAVASCRIPT_ENABLED , Boolean.TRUE);

         loConfig.setProperty(BrowserFieldConfig.JAVASCRIPT_TIMEOUT, new Integer(1000));

moBrowserField = new BrowserField(loConfig);


----- added the browser field to required layout manager....


String lsPOSTParameters = "ADV_APP_USER="+loMainApp.getUserId()+"&ADV_APP_PASSWORD="
                                       + loMainApp.getPassword();
            Hashtable loRequestHeaders = new Hashtable();
            BrowserFieldRequest loRequest = new BrowserFieldRequest(loMainApp.getURL(),lsPOSTParameters.getBytes(),
                  new HttpHeaders(loRequestHeaders));


For some reason the POST parameters are not being received to the url? Am i doing something wrong? Please help...




Regular Contributor
Posts: 77
Registered: ‎09-19-2008
My Device: Blackberry 8320
My Carrier: Airtel India

Re: BrowserField.requestContent HTTP Post not working!!! need help

Did you debug where your parameters are dropped from request?

Are you testing on device or simulator? If it is simulator, use ethereal to sniff the packets and check whether params are there?

I saw your code is written to make HTTP request via MDS service, did you get a chance to check logs in MDS?