HTTP Response Always Cause I/Oexception using Android 
<blockquote>
  <p>below code is giving I/O excpetion always while i checked the URI in browser its working and I Internet permission is in Android Manifest file is given . I am invoking like this from on click button </p>
</blockquote>

<pre><code>     CheckMetaData cmd = new CheckMetaData();
        cmd.execute(url);
  ---------class def ---  
private class CheckMetaData extends AsyncTask&lt;String,Integer,InputStream&gt; {    
     protected InputStream doInBackground(String... params) {


                    String url=params[0];

                    DefaultHttpClient client = new DefaultHttpClient();

                            HttpGet getRequest = new HttpGet(url);

                            try {

                               HttpResponse getResponse = client.execute(getRequest);
                               final int statusCode = getResponse.getStatusLine().getStatusCode();

                               if (statusCode != HttpStatus.SC_OK) {
                                  Log.w(getClass().getSimpleName(),
                                      "Error " + statusCode + " for URL " + url);
                                  return null;
                               }

                               HttpEntity getResponseEntity = getResponse.getEntity();
                                   return getResponseEntity.getContent();

                            }
                            catch (IOException e) {
                               getRequest.abort();
                               Log.w(getClass().getSimpleName(), "Error for URL " + url, e);

                            }        
                            return null; 
            }
</code></pre>
