Can someone help me better understand this code better.
// request method is GET
DefaultHttpClient httpClient = new DefaultHttpClient();
String paramString = URLEncodedUtils.format(params, "utf-8");
url += "?" + paramString;
HttpGet httpGet = new HttpGet(url);
HttpResponse httpResponse = httpClient.execute(httpGet);
HttpEntity httpEntity = httpResponse.getEntity();
is = httpEntity.getContent();
Mainly i just need help figuring out the URL part.
url += "?" + paramString;
how can i better customize that part of the code?
On customization i want to take my current url
academic_programs_xml/oncampus-departments.xml
and change it to
academic_programs_xml/oncampus-associates.xml
my thoughts are that you can take the url for the location
academic_programs_xml/
then add the param to the url then add .xml
something like this maybe?
url += paramString + ".xml";