title: How to send post request with basic auth in retrofit?
body: <p>In my code, I want to send post request with basic auth.</p>
  
  <p><strong>Here is my postman screenshot :</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/zWfZq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zWfZq.png" alt="enter image description here"></a></p>
  
  <p><strong>here is my apiInterface class</strong></p>
  
  <pre><code>@FormUrlEncoded
      @POST("GetBarcodeDetail")
      Call&lt;PreliminaryGoodsAcceptResponse&gt; PRELIMINARY_GOODS_ACCEPT_RESPONSE_CALL(@Field("ProcName") String procName, @Field("Barcode") String barcode, @Field("LangCode") String langCode);
  </code></pre>
  
  <p><strong>here is my apiclient</strong> </p>
  
  <pre><code>public class ApiClient {
  
      public static final String BASE_URL = "http://192.**********";
      private static Retrofit retrofit = null;
      private static OkHttpClient sClient;
  
      public static Retrofit getClient() {
          if(sClient == null) {
              HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
              interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
              sClient = new OkHttpClient.Builder()
                      .addInterceptor(new HttpLoggingInterceptor(HttpLoggingInterceptor.Logger.DEFAULT))
                      .addInterceptor(interceptor)
                      .build();
          }
  
          if (retrofit==null) {
              retrofit = new Retrofit.Builder()
                      .baseUrl(BASE_URL)
                      .addConverterFactory(GsonConverterFactory.create())
                      .client(sClient)
                      .build();
          }
          return retrofit;
      }
  
  }
  </code></pre>
  
  <p>My question is how can i send post request,using header : </p>
  
  <blockquote>
    <p>Header Username :        EBA Token          :<br>
    34242353453456563DSFS</p>
  </blockquote>