8

android java.lang.IllegalArgumentException in HttpGet

view full story
linux-howto

http://stackoverflow.com – I'm trying to get response from remote server. Here is my code: private static String baseRequestUrl = "http://www.pappico.ru/promo.php?action="; @SuppressWarnings("deprecation") public String executeRequest(String url) { String res = ""; HttpClient httpClient = new DefaultHttpClient(); HttpResponse response; try { //url = URLEncoder.encode(url, "UTF-8"); HttpGet httpGet = new HttpGet(url); response = httpClient.execute(httpGet); Log.d("MAPOFRUSSIA", response.getStatusLine().toString()); (HowTos)