title: passing values to url using http get
body: <p>i need to pass 2 string json parameters to a url and i need to get the json response. how can i pass parameters in get method. Here is my code </p>
  
  <pre><code>public void get()
  {
       HttpConnection con = null;
       String url = "my url";
  
          try
          {
              URLEncodedPostData data = new URLEncodedPostData("UTF-8", false);
              data.append("method", "session.getToken");
              data.append("phonenumber:=", "1212345687");
              data.append("PIN:=", "1234");
              url = url +  data.toString();
  
              con = (HttpConnection)Connector.open(url);
              con.setRequestMethod(HttpConnection.GET);
              res = con.getResponseMessage();
              res1 = Integer.toString(con.getResponseCode());
              screen.add(new RichTextField("Reponce Message: "+res));
              screen.add(new RichTextField("Reponce Code: "+res1));
  
  
          }
          catch(Exception ex)
          {
              screen.add(new RichTextField(""+ex));
  
          }
  }
  </code></pre>