Blog Of Sem: httpclient and HttpURLConnection

httpclient and HttpURLConnection

                    HttpClient httpclient = new DefaultHttpClient();
                    HttpPost httppost = new HttpPost("http://192.168.43.94/spinner.php");
                    HttpResponse response = httpclient.execute(httppost);
                    is = entity.getContent();
                    Log.e("Fail 1", "3");



--------------------------------





                    URL url = new URL("http://192.168.43.94/spinner.php");
                    urlConnection = (HttpURLConnection) url.openConnection();
                    urlConnection.connect();
                    is = urlConnection.getInputStream();