title: How to get file content by Retrofit2, if URL starts to download file
body: <p>The URL <a href="https://itunes.apple.com/search?term=lennon" rel="nofollow noreferrer">https://itunes.apple.com/search?term=lennon</a>
  starts to download file.
  HTTP request using HttpURLConnection and InputStream returns the json string.
  It is  what I need.</p>
  
  <p>But how to get string response using Retrofit2?
  I tryed the following code:</p>
  
  <pre><code>public interface ItunesApi {
     @GET("/search")
     Call&lt;SongsGson&gt; getData(@Query("term=") String search);
  }
  </code></pre>
  
  <p>I send the request here:</p>
  
  <pre><code>    Retrofit retrofit = new Retrofit.Builder()
              .baseUrl("https://itunes.apple.com/")
              .addConverterFactory(GsonConverterFactory.create())
              .build();
      ItunesApi itunesApi = retrofit.create(ItunesApi.class);
  
      itunesApi.getData(searchString).enqueue(new Callback&lt;SongsGson&gt;() {
          @Override
          public void onResponse(Call&lt;SongsGson&gt; call, Response&lt;SongsGson&gt;  response) {
              int resultCount = response.body().getResultCount();
          }
          ...
      }
  </code></pre>
  
  <p>resultCount is always equal 0.
  response.isSuccessful()=true response.message()=OK
  The class is below:</p>
  
  <pre><code>public class SongsGson {
     @SerializedName("resultCount")
     @Expose
     private int resultCount;
  
     public SongsGson(){}
  
     public void setResultCount(int resultCount){
       this.resultCount = resultCount;
     }
  
     public int getResultCount() {
       return resultCount;
     }
   }
  </code></pre>
  
  <p>Any ideas, please!</p>