title: Retrofit 2 response body contents only "<html>" string
body: <p>I'm trying to understand how to use retrofit library, so I created an android project and a simple php script. My index.php file location is xampp's htdocs directory. </p>
  
  <p>Here is my php script, here I just want to return a string when the script is executed</p>
  
  <pre><code>&lt;html&gt;
   &lt;head&gt;
    &lt;title&gt;PHP Test&lt;/title&gt;
   &lt;/head&gt;
   &lt;body&gt;
   &lt;?php  
      echo "Success";
   ?&gt; 
   &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>On the android part I want to send a GET request</p>
  
  <pre><code>@GET("/")
  Call&lt;String&gt; test();
  </code></pre>
  
  <p>Here I send the response and do necessary preparations</p>
  
  <pre><code>Gson gson = new GsonBuilder()
                  .setDateFormat("yyyy-MM-dd'T'HH:mm:ssZ")
                  .setLenient()
                  .create();        
          Retrofit retrofit = new Retrofit.Builder()
                  .baseUrl("http://192.168.43.169:80/")
                  .addConverterFactory(GsonConverterFactory.create(gson))
                  .build();
          IDataSyncApi dataSyncApi = retrofit.create(IDataSyncApi.class);       
          Callback&lt;String&gt; callback = new Callback&lt;String&gt;() {
              @Override
              public void onResponse(Call&lt;String&gt; call, Response&lt;String&gt; response) {
                  String responseStr = gson.fromJson(response.body().toString(), String.class);
                  Log.d("RESPONSE", responseStr);
              }
  
              @Override
              public void onFailure(Call&lt;String&gt; call, Throwable t) {
  
              }
          };
          Call&lt;String&gt; response = dataSyncApi.test();
          response.enqueue(callback);
  </code></pre>
  
  <p>The problem is that Response's body is always equals to "&lt; html >". What am I doing wrong? </p>
  
  <p><strong>UPDATE 1</strong></p>
  
  <p>I tried using Wikipedia public API instead of mine, and result was the same.
  I got ""</p>
  
  <pre><code> @GET("/w/api.php")
   Call&lt;String&gt; test(@QueryMap Map&lt;String, String&gt; argsMap);
  
  Retrofit retrofit = new Retrofit.Builder()
                  .baseUrl("https://en.wikipedia.org/")
                  .addConverterFactory(GsonConverterFactory.create(gson))
                  .build();
  
  Map&lt;String, String&gt; args = new HashMap&lt;String, String&gt;();
          args.put("action", "query");        
          args.put("meta", "siteinfo");
          args.put("siprop", "namespaces");
          Call&lt;String&gt; response = dataSyncApi.test(args);
          response.enqueue(callback);
  </code></pre>