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

Java Development

Reply
Contributor
jaya_a02
Posts: 25
Registered: ‎08-11-2010
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.........:smileysad:

 

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

Please use plain text.
Developer
rishabh_jain04
Posts: 95
Registered: ‎01-25-2010

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();

 

 

Please use plain text.