title: How can i Send TOKEN in header request with Retrofit in Android
body: <p>I should send <strong>Token</strong> in <strong>Header</strong> to server, for android requests I use <code>Retrofit</code>.<br>
  I use code for Get header token and I can see token : </p>
  
  <pre><code> InterfaceApi api = ApiClient.getClient().create(InterfaceApi.class);
          Call&lt;LoginResponse&gt; call = api.getLoginResponse(loginDatum);
  
          call.enqueue(new Callback&lt;LoginResponse&gt;() {
              @Override
              public void onResponse(Call&lt;LoginResponse&gt; call, Response&lt;LoginResponse&gt; response) {
                  LoginResponse loginResponse = response.body();
                  String token = response.headers().get("Token");
                  if (token != null) {
                      Log.e("tokenTAG", "Token : " + token);
                  }
                  Toast.makeText(context, loginResponse.getStatusMessage() + "", Toast.LENGTH_SHORT).show();
  
                  loadProgress.setVisibility(View.GONE);
                  loginBtn.setVisibility(View.VISIBLE);
              }
  
              @Override
              public void onFailure(Call&lt;LoginResponse&gt; call, Throwable t) {
                  loadProgress.setVisibility(View.GONE);
                  loginBtn.setVisibility(View.VISIBLE);
              }
          });
                      } 
  </code></pre>
  
  <p>But I should Post this token in header to server, for POST data to server I use this code : </p>
  
  <pre><code>@POST("usersInfo/Authenticate")
  Call&lt;LoginResponse&gt; getLoginResponse(@Body LoginDatum loginDatum);
  </code></pre>
  
  <p>How can I send token <strong>(</strong><code>String token = response.headers().get("Token")</code><strong>)</strong> to server this above POST code?</p>
  
  <p>Please help me, i'm amateur.</p>