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

Java Development

Reply
Contributor
Posts: 25
Registered: ‎08-11-2010
My Device: bb
My Carrier: developer

Http GET method

hi

can one say me hw to append an URL address using Http Get method...

i need to pass the URL address and need to get the webpage in my simulator...

so please help me.........Smiley Sad

 

it ll be help full if u provide me with sme code samples too... so please guide me...

Developer
Posts: 95
Registered: ‎01-25-2010
My Device: 9530

Re: Http GET method

hi,

 What kind of help are you looking for? if yo wanat to encode URL in Http Get method.The best way to do this on a BlackBerry is to use the URLEncodedPostData class to properly encode your URL parameters.

 

URLEncodedPostData data = new URLEncodedPostData(URLEncodedPostData.DEFAULT_CHARSET, true);
data.append("name",nameValue);
data.append("name",nameValue);
url = url + "?" + data.toString();