query = URLEncoder.encode(name.toString()) + "=" + URLEncoder.encode(value.toString());
query += "&" + URLEncoder.encode(name.toString()) + "=" + URLEncoder.encode(value.toString());
return query;