query = URLEncoder.encode(name.toString()) + "=" + URLEncoder.encode(value.toString());
query = "";
if (!query.trim().equals("")) query += "&" ; query += URLEncoder.encode(name.toString()) + "=" + URLEncoder.encode(value.toString());
return query;