title: Http Get Request returns html?
body: <p>i am using http get Request for loading a data in android . Don't know it returns html instead of JSON result. The same URL get the json when loading in the browser but in response coming html.</p>
  
  <p>my Http Get call format Like this...</p>
  
  <pre><code>url = new URL(urlString);
  
          //httpURLConnection = (HttpsURLConnection) url.openConnection();
          httpURLConnection = (HttpURLConnection) url.openConnection();
  
          httpURLConnection.setRequestMethod("GET");
          httpURLConnection.setRequestProperty("Connection", "keep-alive");
  
          httpURLConnection.setRequestProperty("Accept", "application/json"); // or application/jsonrequest
          httpURLConnection.setRequestProperty("Content-Type", "application/json");
          /*
          httpURLConnection.setRequestProperty("Content-Type",
                  "application/json");*/
          httpURLConnection.setRequestProperty("UseCookieContainer", "True");
          httpURLConnection.setRequestProperty("Cookie", cokieValue);
          httpURLConnection.connect();
  </code></pre>