private String addParamsToUrl(String webUrl){
if(!webUrl.endsWith("?"))
webUrl += "?";
// add params
List<NameValuePair> params = new LinkedList<NameValuePair>();
params.add(new BasicNameValuePair("myHome", "myHome 111"));
params.add(new BasicNameValuePair("myOffice", "myHome 222"));
params.add(new BasicNameValuePair("myData", "myData 333"));
String paramString = URLEncodedUtils.format(params, "utf-8");
webUrl += paramString;
return webUrl;
}
沒有留言:
張貼留言